create a test migration sql

This commit is contained in:
Hongbo Wu 2024-06-21 17:44:19 +08:00
parent 67fc0baaed
commit f64e85be5b
2 changed files with 21 additions and 0 deletions

View 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;

View file

@ -0,0 +1,7 @@
-- Type: UNDO
-- Name: test
-- Description: test
BEGIN;
COMMIT;