From 92bf14bb7cc0c10f67a9a67e7512138c15db6ec0 Mon Sep 17 00:00:00 2001 From: Melody Horn / boringcactus Date: Mon, 14 Jun 2021 20:54:57 -0600 Subject: start working on migrations --- src/db/migration/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/db/migration/mod.rs (limited to 'src/db/migration/mod.rs') diff --git a/src/db/migration/mod.rs b/src/db/migration/mod.rs new file mode 100644 index 0000000..d53f46b --- /dev/null +++ b/src/db/migration/mod.rs @@ -0,0 +1,12 @@ +pub use tosin_macros::gather_migrations as gather; + +pub struct Migration { + pub id: usize, + pub name: &'static str, + pub prereqs: &'static [(&'static str, usize)], + pub changes: &'static [DatabaseChange], +} + +pub enum DatabaseChange { + CreateModel, +} -- cgit v1.2.3