From 1b1c1fadcf565ae795e73c88cd368810ac9c1ac4 Mon Sep 17 00:00:00 2001 From: Shashwat Dadhich <92629050+ShashwatDadhich@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:47:24 +0530 Subject: [PATCH] sql script update (#4522) --- scripts/sql/209_lock_configuration.down.sql | 1 + scripts/sql/209_lock_configuration.up.sql | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/sql/209_lock_configuration.down.sql create mode 100644 scripts/sql/209_lock_configuration.up.sql diff --git a/scripts/sql/209_lock_configuration.down.sql b/scripts/sql/209_lock_configuration.down.sql new file mode 100644 index 00000000000..025b5ea95bc --- /dev/null +++ b/scripts/sql/209_lock_configuration.down.sql @@ -0,0 +1 @@ +DROP TABLE public.lock_configuration \ No newline at end of file diff --git a/scripts/sql/209_lock_configuration.up.sql b/scripts/sql/209_lock_configuration.up.sql new file mode 100644 index 00000000000..773563ba13c --- /dev/null +++ b/scripts/sql/209_lock_configuration.up.sql @@ -0,0 +1,13 @@ +CREATE SEQUENCE IF NOT EXISTS id_seq_lock_configuration; + +CREATE TABLE IF NOT EXISTS public.lock_configuration +( + "id" int4 NOT NULL DEFAULT nextval('id_seq_lock_configuration'::regclass), + "config" text, + "active" bool, + "created_on" timestamptz NOT NULL, + "created_by" int4 NOT NULL, + "updated_on" timestamptz NOT NULL, + "updated_by" int4 NOT NULL, + PRIMARY KEY ("id") + );