Repository: ambari
Updated Branches:
  refs/heads/trunk b166a020d -> 4331b29a7


AMBARI-17611. DB setup fails for SQLServer due to incorrect table schema 
definition for extensionlink (alejandro)


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

Branch: refs/heads/trunk
Commit: 4331b29a7b2f36287369085ae50c5a0435fd13f3
Parents: b166a02
Author: Alejandro Fernandez <[email protected]>
Authored: Thu Jul 7 10:52:04 2016 -0700
Committer: Alejandro Fernandez <[email protected]>
Committed: Thu Jul 7 11:08:36 2016 -0700

----------------------------------------------------------------------
 ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4331b29a/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 
b/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
index fda4af6..8f0dae0 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
@@ -50,7 +50,7 @@ CREATE TABLE extensionlink(
   CONSTRAINT PK_extensionlink PRIMARY KEY CLUSTERED (link_id),
   CONSTRAINT FK_extensionlink_stack_id FOREIGN KEY (stack_id) REFERENCES 
stack(stack_id),
   CONSTRAINT FK_extensionlink_extension_id FOREIGN KEY (extension_id) 
REFERENCES extension(extension_id),
-  CONSTRAINT UQ_extension_link UNIQUE (stack_id, extension_id);
+  CONSTRAINT UQ_extension_link UNIQUE (stack_id, extension_id));
 
 CREATE TABLE adminresourcetype (
   resource_type_id INTEGER NOT NULL,

Reply via email to