From bb3606b35b5087981f912c264f0d916e9ed919c9 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 11 Jul 2018 22:35:54 +0800 Subject: [PATCH] modify command table --- bin/dbVersion.json | 3 ++- schema/20180711-1.sql | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 schema/20180711-1.sql diff --git a/bin/dbVersion.json b/bin/dbVersion.json index 82b2739..28bacc1 100644 --- a/bin/dbVersion.json +++ b/bin/dbVersion.json @@ -5,7 +5,8 @@ {"file": "20180628-2.sql", "version": 3}, {"file": "20180702-1.sql", "version": 4}, {"file": "20180706-1.sql", "version": 5}, - {"file": "20180710-1.sql", "version": 6} + {"file": "20180710-1.sql", "version": 6}, + {"file": "20180711-1.sql", "version": 7} ], "test": [] } \ No newline at end of file diff --git a/schema/20180711-1.sql b/schema/20180711-1.sql new file mode 100644 index 0000000..02d18fe --- /dev/null +++ b/schema/20180711-1.sql @@ -0,0 +1,2 @@ +ALTER TABLE public.commands DROP CONSTRAINT commands_pkey; +ALTER TABLE public.commands ADD CONSTRAINT commands_pkey PRIMARY KEY (cmd, "group"); \ No newline at end of file