Added db to backend.

This commit is contained in:
2026-01-16 03:27:07 +01:00
parent 0d5fef7fbb
commit 5f36b535a2
7 changed files with 44 additions and 8 deletions
@@ -0,0 +1 @@
-- Add migration script here
+21
View File
@@ -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
````