Repository: hive
Updated Branches:
  refs/heads/branch-3.0 1c6d946f9 -> f2ee20447


HIVE-19862: Postgres init script has a glitch around UNIQUE_DATABASE (Daniel 
Dai, reviewed by Alan Gates)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/f2ee2044
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/f2ee2044
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/f2ee2044

Branch: refs/heads/branch-3.0
Commit: f2ee204471ff0422be824d2242c7d134e02f1e17
Parents: 1c6d946
Author: Daniel Dai <[email protected]>
Authored: Mon Jun 11 23:33:28 2018 -0700
Committer: Daniel Dai <[email protected]>
Committed: Mon Jun 11 23:33:28 2018 -0700

----------------------------------------------------------------------
 .../src/main/sql/postgres/hive-schema-3.0.0.postgres.sql           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/f2ee2044/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql
----------------------------------------------------------------------
diff --git 
a/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql 
b/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql
index d210a55..97697f8 100644
--- a/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql
+++ b/standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql
@@ -1024,7 +1024,7 @@ ALTER TABLE ONLY "TBLS"
 --
 
 ALTER TABLE ONLY "DBS"
-    ADD CONSTRAINT "UNIQUE_DATABASE" UNIQUE ("NAME");
+    ADD CONSTRAINT "UNIQUE_DATABASE" UNIQUE ("NAME", "CTLG_NAME");
 
 
 --

Reply via email to