From 6621bf3d7e5fc49f742acd435b2c47693f004692 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:04:18 -0700 Subject: [PATCH] Create migration to add latest migration to database --- database/migrations/1_add_metadata_table.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 database/migrations/1_add_metadata_table.sql diff --git a/database/migrations/1_add_metadata_table.sql b/database/migrations/1_add_metadata_table.sql new file mode 100644 index 0000000..2bfb449 --- /dev/null +++ b/database/migrations/1_add_metadata_table.sql @@ -0,0 +1,11 @@ +BEGIN; + +CREATE TABLE IF NOT EXISTS metadata( + property TEXT UNIQUE NOT NULL, + value TEXT NOT NULL +); + +INSERT INTO metadata(property, value) + VALUES("latest_migration", "1"); + +COMMIT; \ No newline at end of file