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/contrib/admin/migrations/m_0001_initial.rs | 10 ++++++++++ src/contrib/admin/migrations/mod.rs | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 src/contrib/admin/migrations/m_0001_initial.rs create mode 100644 src/contrib/admin/migrations/mod.rs (limited to 'src/contrib/admin/migrations') diff --git a/src/contrib/admin/migrations/m_0001_initial.rs b/src/contrib/admin/migrations/m_0001_initial.rs new file mode 100644 index 0000000..6fed631 --- /dev/null +++ b/src/contrib/admin/migrations/m_0001_initial.rs @@ -0,0 +1,10 @@ +use crate::db::migration::{Migration, DatabaseChange}; + +pub const MIGRATION: Migration = Migration { + id: 1, + name: "initial", + prereqs: &[], + changes: &[ + DatabaseChange::CreateModel, + ], +}; diff --git a/src/contrib/admin/migrations/mod.rs b/src/contrib/admin/migrations/mod.rs new file mode 100644 index 0000000..5ecbb82 --- /dev/null +++ b/src/contrib/admin/migrations/mod.rs @@ -0,0 +1,3 @@ +use crate::db::migration::{Migration, gather}; + +gather!(); -- cgit v1.2.3