From f64e85be5bc713d4664d6b746f249584c16f7bd3 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 21 Jun 2024 17:44:19 +0800 Subject: [PATCH] create a test migration sql --- packages/db/migrations/0183.do.test.sql | 14 ++++++++++++++ packages/db/migrations/0183.undo.test.sql | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100755 packages/db/migrations/0183.do.test.sql create mode 100755 packages/db/migrations/0183.undo.test.sql diff --git a/packages/db/migrations/0183.do.test.sql b/packages/db/migrations/0183.do.test.sql new file mode 100755 index 000000000..5ac85ac63 --- /dev/null +++ b/packages/db/migrations/0183.do.test.sql @@ -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; diff --git a/packages/db/migrations/0183.undo.test.sql b/packages/db/migrations/0183.undo.test.sql new file mode 100755 index 000000000..811a356c3 --- /dev/null +++ b/packages/db/migrations/0183.undo.test.sql @@ -0,0 +1,7 @@ +-- Type: UNDO +-- Name: test +-- Description: test + +BEGIN; + +COMMIT;