wip: Migration works now, still writing mirgations

This commit is contained in:
2026-03-26 00:13:43 +00:00
parent ba4a702574
commit 27083de136
7 changed files with 57 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
// Login with a bot token from the environment
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
let dbc: DatabaseConnection = Database::connect("sqlite::memory:").await?;
let dbc: DatabaseConnection = Database::connect("sqlite://./db.sqlite?mode=rwc").await?;
Migrator::up(&dbc, None).await?;
// Set gateway intents, which decides what events the bot will be notified about