ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject git commit: AMBARI-4446. Upgrade schema script for Oracle fails if upgrading from 1.4.1 or 1.4.2 to 1.4.4
Date Tue, 28 Jan 2014 19:48:47 GMT
Updated Branches:
  refs/heads/branch-1.4.4 6a31ca19a -> 9398eb8bc


AMBARI-4446. Upgrade schema script for Oracle fails if upgrading from 1.4.1 or 1.4.2 to 1.4.4


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

Branch: refs/heads/branch-1.4.4
Commit: 9398eb8bcf1ccc52a540dcaeef8890b3d53af10d
Parents: 6a31ca1
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Tue Jan 28 11:46:58 2014 -0800
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Tue Jan 28 11:48:24 2014 -0800

----------------------------------------------------------------------
 .../src/main/resources/upgrade/ddl/Ambari-DDL-Oracle-UPGRADE.sql   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9398eb8b/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Oracle-UPGRADE.sql
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Oracle-UPGRADE.sql b/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Oracle-UPGRADE.sql
index 3db20e7..a372f48 100644
--- a/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Oracle-UPGRADE.sql
+++ b/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Oracle-UPGRADE.sql
@@ -27,7 +27,7 @@ ALTER TABLE stage ADD (cluster_host_info BLOB DEFAULT NULL);
 
 -- DML
 --Upgrade version to current
-UPDATE metainfo SET "metainfo_key" = 'version', "metainfo_value" = '${ambariVersion}';
+UPDATE metainfo SET "metainfo_value" = '${ambariVersion}' WHERE "metainfo_key" = 'version';
 
 INSERT INTO ambari_sequences(sequence_name, value) values ('configgroup_id_seq', 1);
 


Mime
View raw message