This commit is contained in:
parent
cd4096b2ff
commit
a0afb6dfd3
24 changed files with 536 additions and 274 deletions
|
|
@ -23,9 +23,7 @@ impl Database {
|
|||
|
||||
let pool = SqlitePoolOptions::new().connect_with(db_options).await?;
|
||||
|
||||
sqlx::migrate!("./migrations/each_user/")
|
||||
.run(&pool)
|
||||
.await?;
|
||||
sqlx::migrate!("./migrations/each_user/").run(&pool).await?;
|
||||
if user.username == "demo" {
|
||||
sqlx::query_file!("./migrations/demo.sql")
|
||||
.execute(&pool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue