ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-10445. Populate cluster widgets from stack-defined widgets on cluster/service create. Upgrade Catalog changes. (swagle)
Date Sat, 11 Apr 2015 00:24:36 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk d3d73f762 -> 5dad81c3d


AMBARI-10445. Populate cluster widgets from stack-defined widgets on cluster/service create.
Upgrade Catalog changes. (swagle)


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

Branch: refs/heads/trunk
Commit: 5dad81c3df577bc81f588cb61eae6b0f56089b87
Parents: d3d73f7
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Fri Apr 10 17:24:25 2015 -0700
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Fri Apr 10 17:24:32 2015 -0700

----------------------------------------------------------------------
 .../org/apache/ambari/server/upgrade/UpgradeCatalog210.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5dad81c3/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
index e94d5f4..d72c9d3 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
@@ -309,10 +309,10 @@ public class UpgradeCatalog210 extends AbstractUpgradeCatalog {
     columns.add(new DBColumnInfo("time_created", Long.class,  255,   null, false));
     columns.add(new DBColumnInfo("author", String.class,  255,   null, true));
     columns.add(new DBColumnInfo("description", String.class,  255,   null, true));
-    columns.add(new DBColumnInfo("display_name", String.class,  255,   null, false));
+    columns.add(new DBColumnInfo("display_name", String.class,  255,   null, true));
     columns.add(new DBColumnInfo("scope", String.class,  255,   null, true));
-    columns.add(new DBColumnInfo("widget_values", String.class,  255,   null, true));
-    columns.add(new DBColumnInfo("properties", String.class,  255,   null, true));
+    columns.add(new DBColumnInfo("widget_values", String.class,  4000,   null, true));
+    columns.add(new DBColumnInfo("properties", String.class,  4000,   null, true));
     columns.add(new DBColumnInfo("cluster_id", Long.class,  255,   null, false));
     dbAccessor.createTable(WIDGET_TABLE, columns, "id");
 
@@ -323,7 +323,7 @@ public class UpgradeCatalog210 extends AbstractUpgradeCatalog {
     columns.add(new DBColumnInfo("cluster_id", Long.class,  255,   null, false));
     columns.add(new DBColumnInfo("scope", String.class,  255,   null, false));
     columns.add(new DBColumnInfo("user_name", String.class,  255,   null, false));
-    columns.add(new DBColumnInfo("display_name", String.class,  255,   null, false));
+    columns.add(new DBColumnInfo("display_name", String.class,  255,   null, true));
 
     dbAccessor.createTable(WIDGET_LAYOUT_TABLE, columns, "id");
 


Mime
View raw message