mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
create a test migration sql
This commit is contained in:
parent
67fc0baaed
commit
f64e85be5b
2 changed files with 21 additions and 0 deletions
14
packages/db/migrations/0183.do.test.sql
Executable file
14
packages/db/migrations/0183.do.test.sql
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
-- Type: DO
|
||||
-- Name: test
|
||||
-- Description: test
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE TABLE omnivore.test (
|
||||
id UUID PRIMARY KEY DEFAULT uuid_generate_v1mc(),
|
||||
name TEXT NOT NULL,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
COMMIT;
|
||||
7
packages/db/migrations/0183.undo.test.sql
Executable file
7
packages/db/migrations/0183.undo.test.sql
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
-- Type: UNDO
|
||||
-- Name: test
|
||||
-- Description: test
|
||||
|
||||
BEGIN;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue