diff --git a/src/cli.rs b/src/cli.rs index f199473..7f6541a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -120,7 +120,6 @@ pub(crate) fn midas_entry( .expect("msg: No database connection url was provided"); debug!("Using DSN: {}", raw_db_url); - let default_source_path = Some("migrations".to_string()); let env_source_path = env::var("MIGRATIONS_ROOT").ok(); let source = matches diff --git a/src/sequel/sqlite.rs b/src/sequel/sqlite.rs index 62538cd..8f067ec 100644 --- a/src/sequel/sqlite.rs +++ b/src/sequel/sqlite.rs @@ -22,7 +22,7 @@ impl SequelDriver for Sqlite { } fn ensure_migration_table_exists(&mut self) -> Result<(), Error> { - let payload = "CREATE TABLE IF NOT EXISTS __schema_migrations (id SERIAL PRIMARY KEY, migration BIGINT)"; + let payload = "CREATE TABLE IF NOT EXISTS __schema_migrations (id INTEGER PRIMARY KEY AUTOINCREMENT, migration BIGINT)"; self.conn.execute(payload, ())?; Ok(()) }