ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject git commit: AMBARI-6644. Ambari Server start fails with Postgres Embedded DB. (Jayush via mahadev)
Date Wed, 30 Jul 2014 20:19:59 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 2885f1912 -> 5d264f886


AMBARI-6644. Ambari Server start fails with Postgres Embedded DB. (Jayush via mahadev)


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

Branch: refs/heads/trunk
Commit: 5d264f886b385a3b9eda4fc8c7ee382d8e2abf8f
Parents: 2885f19
Author: Mahadev Konar <mahadev@apache.org>
Authored: Wed Jul 30 13:19:52 2014 -0700
Committer: Mahadev Konar <mahadev@apache.org>
Committed: Wed Jul 30 13:19:52 2014 -0700

----------------------------------------------------------------------
 .../Ambari-DDL-Postgres-EMBEDDED-CREATE.sql     | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5d264f88/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
index b5fcd94..45b83c5 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
@@ -212,17 +212,17 @@ ALTER TABLE ambari.viewinstance ADD CONSTRAINT FK_viewinst_view_name
FOREIGN KEY
 ALTER TABLE ambari.viewinstanceproperty ADD CONSTRAINT FK_viewinstprop_view_name FOREIGN
KEY (view_name, view_instance_name) REFERENCES ambari.viewinstance(view_name, name);
 ALTER TABLE ambari.viewinstancedata ADD CONSTRAINT FK_viewinstdata_view_name FOREIGN KEY
(view_instance_id, view_name, view_instance_name) REFERENCES ambari.viewinstance(view_instance_id,
view_name, name);
 ALTER TABLE ambari.viewentity ADD CONSTRAINT FK_viewentity_view_name FOREIGN KEY (view_name,
view_instance_name) REFERENCES ambari.viewinstance(view_name, name);
-ALTER TABLE ambari.adminresource ADD CONSTRAINT FK_resource_resource_type_id FOREIGN KEY
(resource_type_id) REFERENCES adminresourcetype(resource_type_id);
-ALTER TABLE ambari.adminprincipal ADD CONSTRAINT FK_principal_principal_type_id FOREIGN KEY
(principal_type_id) REFERENCES adminprincipaltype(principal_type_id);
-ALTER TABLE ambari.adminpermission ADD CONSTRAINT FK_permission_resource_type_id FOREIGN
KEY (resource_type_id) REFERENCES adminresourcetype(resource_type_id);
+ALTER TABLE ambari.adminresource ADD CONSTRAINT FK_resource_resource_type_id FOREIGN KEY
(resource_type_id) REFERENCES ambari.adminresourcetype(resource_type_id);
+ALTER TABLE ambari.adminprincipal ADD CONSTRAINT FK_principal_principal_type_id FOREIGN KEY
(principal_type_id) REFERENCES ambari.adminprincipaltype(principal_type_id);
+ALTER TABLE ambari.adminpermission ADD CONSTRAINT FK_permission_resource_type_id FOREIGN
KEY (resource_type_id) REFERENCES ambari.adminresourcetype(resource_type_id);
 ALTER TABLE ambari.adminpermission ADD CONSTRAINT UQ_permission_name_resource_type_id UNIQUE
(permission_name, resource_type_id);
-ALTER TABLE ambari.adminprivilege ADD CONSTRAINT FK_privilege_permission_id FOREIGN KEY (permission_id)
REFERENCES adminpermission(permission_id);
-ALTER TABLE ambari.adminprivilege ADD CONSTRAINT FK_privilege_resource_id FOREIGN KEY (resource_id)
REFERENCES adminresource(resource_id);
-ALTER TABLE viewmain ADD CONSTRAINT FK_view_resource_type_id FOREIGN KEY (resource_type_id)
REFERENCES adminresourcetype(resource_type_id);
-ALTER TABLE ambari.viewinstance ADD CONSTRAINT FK_viewinstance_resource_id FOREIGN KEY (resource_id)
REFERENCES adminresource(resource_id);
-ALTER TABLE ambari.adminprivilege ADD CONSTRAINT FK_privilege_principal_id FOREIGN KEY (principal_id)
REFERENCES adminprincipal(principal_id);
-ALTER TABLE ambari.users ADD CONSTRAINT FK_users_principal_id FOREIGN KEY (principal_id)
REFERENCES adminprincipal(principal_id);
-ALTER TABLE ambari.groups ADD CONSTRAINT FK_groups_principal_id FOREIGN KEY (principal_id)
REFERENCES adminprincipal(principal_id);
+ALTER TABLE ambari.adminprivilege ADD CONSTRAINT FK_privilege_permission_id FOREIGN KEY (permission_id)
REFERENCES ambari.adminpermission(permission_id);
+ALTER TABLE ambari.adminprivilege ADD CONSTRAINT FK_privilege_resource_id FOREIGN KEY (resource_id)
REFERENCES ambari.adminresource(resource_id);
+ALTER TABLE ambari.viewmain ADD CONSTRAINT FK_view_resource_type_id FOREIGN KEY (resource_type_id)
REFERENCES ambari.adminresourcetype(resource_type_id);
+ALTER TABLE ambari.viewinstance ADD CONSTRAINT FK_viewinstance_resource_id FOREIGN KEY (resource_id)
REFERENCES ambari.adminresource(resource_id);
+ALTER TABLE ambari.adminprivilege ADD CONSTRAINT FK_privilege_principal_id FOREIGN KEY (principal_id)
REFERENCES ambari.adminprincipal(principal_id);
+ALTER TABLE ambari.users ADD CONSTRAINT FK_users_principal_id FOREIGN KEY (principal_id)
REFERENCES ambari.adminprincipal(principal_id);
+ALTER TABLE ambari.groups ADD CONSTRAINT FK_groups_principal_id FOREIGN KEY (principal_id)
REFERENCES ambari.adminprincipal(principal_id);
 
 -- Alerting Framework
 CREATE TABLE ambari.alert_definition (


Mime
View raw message