aboutsummaryrefslogtreecommitdiff
path: root/src/db/migration
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/migration')
-rw-r--r--src/db/migration/mod.rs12
1 files changed, 12 insertions, 0 deletions
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,
+}