Create migration to add latest migration to database
This commit is contained in:
parent
fa13b227d2
commit
6621bf3d7e
1 changed files with 11 additions and 0 deletions
11
database/migrations/1_add_metadata_table.sql
Normal file
11
database/migrations/1_add_metadata_table.sql
Normal file
|
@ -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;
|
Reference in a new issue