diff options
Diffstat (limited to 'src/db/mod.rs')
-rw-r--r-- | src/db/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/db/mod.rs b/src/db/mod.rs index 3d498a8..101c874 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -8,7 +8,10 @@ use crate::model::event::Event; pub fn init(db_path: &str) -> Result<Connection> { let mut conn = Connection::open(db_path)?; - let migrations = Migrations::new(vec![M::up(include_str!("migrations/1-init.sql"))]); + let migrations = Migrations::new(vec![ + M::up(include_str!("migrations/1-init.sql")), + M::up(include_str!("migrations/2-categories.sql")), + ]); migrations.to_latest(&mut conn)?; Ok(conn) } |