wip: Migration works now, still writing mirgations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user