Added db to backend.
This commit is contained in:
1 parent
0d5fef7fbb
commit
5f36b535a2
7 files changed
+44
-8
No files matched your search
@@ -0,0 +1 @@
|
||||
-- Add migration script here
|
||||
@@ -0,0 +1,21 @@
|
||||
# Migration scripts
|
||||
|
||||
## Installation
|
||||
````bash
|
||||
cargo install sqlx-cli
|
||||
````
|
||||
|
||||
## Create database
|
||||
|
||||
````bash
|
||||
sqlx database setup
|
||||
````
|
||||
|
||||
## Use migration
|
||||
````bash
|
||||
# Creating new script file.
|
||||
sqlx migrate add <Name for script>
|
||||
|
||||
# Run migration
|
||||
sqlx migrate run
|
||||
````
|
||||
Reference in new issue
Block a user