diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-14 20:54:57 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-14 20:54:57 -0600 |
commit | 92bf14bb7cc0c10f67a9a67e7512138c15db6ec0 (patch) | |
tree | 4a18d50fe97f41671e4b4fd82483bc9c49333d70 /src/db/migration | |
parent | 6bcb3620d8be2f3bcfe72432d17955827894bb6e (diff) | |
download | tosin-92bf14bb7cc0c10f67a9a67e7512138c15db6ec0.tar.gz tosin-92bf14bb7cc0c10f67a9a67e7512138c15db6ec0.zip |
start working on migrations
Diffstat (limited to 'src/db/migration')
-rw-r--r-- | src/db/migration/mod.rs | 12 |
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, +} |