incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject [44/58] [partial] Initial setup of new console
Date Tue, 08 Oct 2013 17:59:52 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110627180604_change_uuid_columntoint.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110627180604_change_uuid_columntoint.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110627180604_change_uuid_columntoint.rb
new file mode 100644
index 0000000..5371f86
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110627180604_change_uuid_columntoint.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeUuidColumntoint < ActiveRecord::Migration
+  def self.up
+    change_column :blur_queries, :uuid, :integer
+  end
+
+  def self.down
+    change_column :blur_queries, :uuid, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110627183020_change_uuid_int_to_bigint.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110627183020_change_uuid_int_to_bigint.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110627183020_change_uuid_int_to_bigint.rb
new file mode 100644
index 0000000..d327828
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110627183020_change_uuid_int_to_bigint.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeUuidIntToBigint < ActiveRecord::Migration
+  def self.up
+    change_column :blur_queries, :uuid, :integer, :limit => 8
+  end
+
+  def self.down
+    change_column :blur_queries, :uuid, :integer
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110629190801_change_cluster_to_belong_to_instance.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110629190801_change_cluster_to_belong_to_instance.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110629190801_change_cluster_to_belong_to_instance.rb
new file mode 100644
index 0000000..6fef4cb
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110629190801_change_cluster_to_belong_to_instance.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeClusterToBelongToInstance < ActiveRecord::Migration
+  def self.up
+    rename_column :clusters, :controller_id, :blur_zookeeper_instance_id
+  end
+
+  def self.down
+    rename_column :clusters, :blur_zookeeper_instance_id, :controller_id
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110630160404_rename_blur_zookeeper_instances_to_zookeepers.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110630160404_rename_blur_zookeeper_instances_to_zookeepers.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110630160404_rename_blur_zookeeper_instances_to_zookeepers.rb
new file mode 100644
index 0000000..c8e158f
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110630160404_rename_blur_zookeeper_instances_to_zookeepers.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class RenameBlurZookeeperInstancesToZookeepers < ActiveRecord::Migration
+  def self.up
+    rename_table :blur_zookeeper_instances, :zookeepers
+  end
+
+  def self.down
+    rename_table :zookeepers, :blur_zookeeper_instances
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110630161453_rename_blur_zookeeper_instance_id.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110630161453_rename_blur_zookeeper_instance_id.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110630161453_rename_blur_zookeeper_instance_id.rb
new file mode 100644
index 0000000..f32c4d6
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110630161453_rename_blur_zookeeper_instance_id.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class RenameBlurZookeeperInstanceId < ActiveRecord::Migration
+  def self.up
+    rename_column :clusters, :blur_zookeeper_instance_id, :zookeeper_id
+    rename_column :controllers, :blur_zookeeper_instance_id, :zookeeper_id
+  end
+
+  def self.down
+    rename_column :clusters, :zookeeper_id, :blur_zookeeper_instance_id
+    rename_column :controllers, :zookeeper_id, :blur_zookeeper_instance_id
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110701142732_change_blur_table_current_size_to_bigint.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110701142732_change_blur_table_current_size_to_bigint.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110701142732_change_blur_table_current_size_to_bigint.rb
new file mode 100644
index 0000000..3d6ef3d
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110701142732_change_blur_table_current_size_to_bigint.rb
@@ -0,0 +1,30 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeBlurTableCurrentSizeToBigint < ActiveRecord::Migration
+  def self.up
+    change_table :blur_tables do |t|
+      t.change :current_size, :integer, :limit => 8
+    end
+  end
+
+  def self.down
+    change_table :blur_tables do |t|
+      t.change :current_size, :integer
+    end
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110701185350_create_searches.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110701185350_create_searches.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110701185350_create_searches.rb
new file mode 100644
index 0000000..9df4188
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110701185350_create_searches.rb
@@ -0,0 +1,37 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateSearches < ActiveRecord::Migration
+  def self.up
+    create_table :searches do |t|
+      t.boolean :super_query
+      t.string :columns
+      t.integer :fetch
+      t.integer :offset
+      t.string :name
+      t.string :query
+      t.integer :blur_table_id
+      t.integer :user_id
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :searches
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110705170021_change_columnsto_textobject.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110705170021_change_columnsto_textobject.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110705170021_change_columnsto_textobject.rb
new file mode 100644
index 0000000..675da26
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110705170021_change_columnsto_textobject.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeColumnstoTextobject < ActiveRecord::Migration
+  def self.up
+    change_column :searches, :columns, :text
+  end
+
+  def self.down
+    change_column :searches, :columns, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110705191234_add_column_shard_id_to_blur_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110705191234_add_column_shard_id_to_blur_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110705191234_add_column_shard_id_to_blur_tables.rb
new file mode 100644
index 0000000..6b249a6
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110705191234_add_column_shard_id_to_blur_tables.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddColumnShardIdToBlurTables < ActiveRecord::Migration
+  def self.up
+    add_column :blur_tables, :shard_id, :integer
+  end
+
+  def self.down
+    remove_column :blur_tables, :shard_id
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110707132418_create_shards_blur_tables_table.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110707132418_create_shards_blur_tables_table.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110707132418_create_shards_blur_tables_table.rb
new file mode 100644
index 0000000..3ee003e
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110707132418_create_shards_blur_tables_table.rb
@@ -0,0 +1,31 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateShardsBlurTablesTable < ActiveRecord::Migration
+  def self.up
+    create_table :blur_tables_shards, :id => false do |t|
+      t.integer :shard_id
+      t.integer :blur_table_id
+    end
+    remove_column :blur_tables, :shard_id
+  end
+
+  def self.down
+    drop_table :blur_tables_shards
+    add_column :blur_tables, :shard_id, :integer
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110707201314_update_model_with_new_understand_of_shards.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110707201314_update_model_with_new_understand_of_shards.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110707201314_update_model_with_new_understand_of_shards.rb
new file mode 100644
index 0000000..86a7d3e
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110707201314_update_model_with_new_understand_of_shards.rb
@@ -0,0 +1,33 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class UpdateModelWithNewUnderstandOfShards < ActiveRecord::Migration
+  def self.up
+    add_column :blur_tables, :cluster_id, :integer
+
+    drop_table :blur_tables_shards
+  end
+
+  def self.down
+    remove_column :blur_tables, :cluster_id
+
+    create_table :blur_tables_shards, :id => false do |t|
+      t.integer :shard_id
+      t.integer :blur_table_id
+    end
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110713141138_create_preferences.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110713141138_create_preferences.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110713141138_create_preferences.rb
new file mode 100644
index 0000000..965b703
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110713141138_create_preferences.rb
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreatePreferences < ActiveRecord::Migration
+  def self.up
+    create_table :preferences do |t|
+      t.string :name
+      t.string :pref_type
+      t.text :value
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :preferences
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110714160454_adding_useridto_the_model_for_association.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110714160454_adding_useridto_the_model_for_association.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110714160454_adding_useridto_the_model_for_association.rb
new file mode 100644
index 0000000..feef455
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110714160454_adding_useridto_the_model_for_association.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddingUseridtoTheModelForAssociation < ActiveRecord::Migration
+  def self.up
+    add_column :preferences, :user_id, :integer
+  end
+
+  def self.down
+    remove_column :preferences, :user_id
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110719191147_create_metrics_table.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110719191147_create_metrics_table.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110719191147_create_metrics_table.rb
new file mode 100644
index 0000000..8c7c3fb
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110719191147_create_metrics_table.rb
@@ -0,0 +1,39 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateMetricsTable < ActiveRecord::Migration
+  def self.up
+    create_table :system_metrics, :force => true do |t|
+      t.column :name, :string, :null => false
+      t.column :started_at, :datetime, :null => false
+      t.column :transaction_id, :string
+      t.column :payload, :text
+      t.column :duration, :float, :null => false
+      t.column :exclusive_duration, :float, :null => false
+      t.column :request_id, :integer
+      t.column :parent_id, :integer
+      t.column :action, :string, :null => false
+      t.column :category, :string, :null => false
+    end
+
+    # TODO: Add indexes
+  end
+
+  def self.down
+    drop_table :system_metrics
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110726194727_add_columns_to_hdfs_stats.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110726194727_add_columns_to_hdfs_stats.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110726194727_add_columns_to_hdfs_stats.rb
new file mode 100644
index 0000000..1897bb3
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110726194727_add_columns_to_hdfs_stats.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddColumnsToHdfsStats < ActiveRecord::Migration
+  def self.up
+    add_column :hdfs_stats, :host, :string
+    add_column :hdfs_stats, :port, :integer
+  end
+
+  def self.down
+    remove_column :hdfs_stats, :host
+    remove_column :hdfs_stats, :port
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110727012928_create_hdfs.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110727012928_create_hdfs.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110727012928_create_hdfs.rb
new file mode 100644
index 0000000..9ee6cb6
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110727012928_create_hdfs.rb
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateHdfs < ActiveRecord::Migration
+  def self.up
+    create_table :hdfs do |t|
+      t.string :host
+      t.string :port
+      t.string :name
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :hdfs
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110727013041_update_hdfs_stats.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110727013041_update_hdfs_stats.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110727013041_update_hdfs_stats.rb
new file mode 100644
index 0000000..b3c6001
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110727013041_update_hdfs_stats.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class UpdateHdfsStats < ActiveRecord::Migration
+  def self.up
+    remove_column :hdfs_stats, :hdfs_name
+    add_column :hdfs_stats, :hdfs_id, :integer
+  end
+
+  def self.down
+    add_column :hdfs_stats, :hdfs_name, :string
+    remove_column :hdfs_stats, :hdfs_id
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110809202748_add_host_and_port_to_zookeeper.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110809202748_add_host_and_port_to_zookeeper.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110809202748_add_host_and_port_to_zookeeper.rb
new file mode 100644
index 0000000..f369e81
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110809202748_add_host_and_port_to_zookeeper.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddHostAndPortToZookeeper < ActiveRecord::Migration
+  def self.up
+    add_column :zookeepers, :host, :string
+    add_column :zookeepers, :port, :string
+  end
+
+  def self.down
+    remove_column :zookeepers, :host
+    remove_column :zookeepers, :port
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110810141028_add_row_count_to_blur_table.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110810141028_add_row_count_to_blur_table.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110810141028_add_row_count_to_blur_table.rb
new file mode 100644
index 0000000..5c298ab
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110810141028_add_row_count_to_blur_table.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddRowCountToBlurTable < ActiveRecord::Migration
+  def self.up
+    add_column :blur_tables, :row_count, :integer, :limit => 8
+  end
+
+  def self.down
+    remove_column :blur_tables, :row_count
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110810142348_change_blur_queries_model.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110810142348_change_blur_queries_model.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110810142348_change_blur_queries_model.rb
new file mode 100644
index 0000000..2ca4fd8
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110810142348_change_blur_queries_model.rb
@@ -0,0 +1,47 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeBlurQueriesModel < ActiveRecord::Migration
+  def self.up
+    add_column :blur_queries, :times, :string
+    remove_column :blur_queries, :cpu_time
+    remove_column :blur_queries, :real_time
+
+    remove_column :blur_queries, :interrupted
+    remove_column :blur_queries, :running
+
+    rename_column :blur_queries, :complete, :complete_shards
+    add_column :blur_queries, :total_shards, :integer
+
+    add_column :blur_queries, :state, :integer
+
+  end
+
+  def self.down
+    remove_column :blur_queries, :times
+    add_column :blur_queries, :cpu_time, :integer
+    add_column :blur_queries, :real_time, :integer
+
+    add_column :blur_queries, :interrupted, :boolean
+    add_column :blur_queries, :running, :boolean
+
+    rename_column :blur_queries, :complete_shards, :complete
+    remove_column :blur_queries, :total_shards
+
+    remove_column :blur_queries, :state
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110929222508_add_live_nodes_to_hdfs_stats.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110929222508_add_live_nodes_to_hdfs_stats.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110929222508_add_live_nodes_to_hdfs_stats.rb
new file mode 100644
index 0000000..5195883
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110929222508_add_live_nodes_to_hdfs_stats.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddLiveNodesToHdfsStats < ActiveRecord::Migration
+  def self.up
+    add_column :hdfs_stats, :live_nodes, :int
+  end
+
+  def self.down
+    remove_column :hdfs_stats, :live_nodes
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20110929224549_update_hdfs_stats_column_sizes.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20110929224549_update_hdfs_stats_column_sizes.rb b/contrib/blur-console-old/blur-admin/db/migrate/20110929224549_update_hdfs_stats_column_sizes.rb
new file mode 100644
index 0000000..09d10cc
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20110929224549_update_hdfs_stats_column_sizes.rb
@@ -0,0 +1,42 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class UpdateHdfsStatsColumnSizes < ActiveRecord::Migration
+  def self.up
+    change_column :hdfs_stats, :config_capacity, :integer, :limit => 7
+    change_column :hdfs_stats, :present_capacity, :integer, :limit => 7
+    change_column :hdfs_stats, :dfs_remaining, :integer, :limit => 7
+    change_column :hdfs_stats, :dfs_used, :integer, :limit => 7
+    change_column :hdfs_stats, :under_replicated, :integer, :limit => 7
+    change_column :hdfs_stats, :corrupt_blocks, :integer, :limit => 7
+    change_column :hdfs_stats, :missing_blocks, :integer, :limit => 7
+    change_column :hdfs_stats, :port, :string
+    change_column :hdfs_stats, :dfs_used_percent, :float
+  end
+
+  def self.down
+    change_column :hdfs_stats, :config_capacity, :integer
+    change_column :hdfs_stats, :present_capacity, :integer
+    change_column :hdfs_stats, :dfs_remaining, :integer
+    change_column :hdfs_stats, :dfs_used, :integer
+    change_column :hdfs_stats, :under_replicated, :integer
+    change_column :hdfs_stats, :corrupt_blocks, :integer
+    change_column :hdfs_stats, :missing_blocks, :integer
+    change_column :hdfs_stats, :port, :integer
+    change_column :hdfs_stats, :dfs_used_percent, :decimal
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111001193840_add_license_table.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111001193840_add_license_table.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111001193840_add_license_table.rb
new file mode 100644
index 0000000..627ee76
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111001193840_add_license_table.rb
@@ -0,0 +1,30 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddLicenseTable < ActiveRecord::Migration
+  def self.up
+    create_table :licenses, {:id => false} do |t|
+      t.string :org
+      t.date :issued_date
+      t.date :expires_date
+    end
+  end
+
+  def self.down
+    drop_table :licenses
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111002175546_add_indexes.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111002175546_add_indexes.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111002175546_add_indexes.rb
new file mode 100644
index 0000000..e79976e
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111002175546_add_indexes.rb
@@ -0,0 +1,48 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddIndexes < ActiveRecord::Migration
+  def self.up
+    add_index :blur_queries, :blur_table_id
+    add_index :blur_tables, :cluster_id
+    add_index :clusters, :zookeeper_id
+    add_index :controllers, :zookeeper_id
+    add_index :hdfs_stats, :hdfs_id
+    add_index :preferences, :user_id
+    add_index :searches, :blur_table_id
+    add_index :searches, :user_id
+    add_index :shards, :cluster_id
+    add_index :system_metrics, :transaction_id
+    add_index :system_metrics, :request_id
+    add_index :system_metrics, :parent_id
+  end
+
+  def self.down
+    remove_index :blur_queries, :blur_table_id
+    remove_index :blur_tables, :cluster_id
+    remove_index :clusters, :zookeeper_id
+    remove_index :controllers, :zookeeper_id
+    remove_index :hdfs_stats, :hdfs_id
+    remove_index :preferences, :user_id
+    remove_index :searches, :blur_table_id
+    remove_index :searches, :user_id
+    remove_index :shards, :cluster_id
+    remove_index :system_metrics, :transaction_id
+    remove_index :system_metrics, :request_id
+    remove_index :system_metrics, :parent_id
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111011041727_remove_extra_columns.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111011041727_remove_extra_columns.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111011041727_remove_extra_columns.rb
new file mode 100644
index 0000000..ebded79
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111011041727_remove_extra_columns.rb
@@ -0,0 +1,44 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class RemoveExtraColumns < ActiveRecord::Migration
+  def self.up
+    remove_column :shards, :created_at
+    remove_column :shards, :updated_at
+    remove_column :hdfs_stats, :updated_at
+    remove_column :hdfs, :created_at
+    remove_column :hdfs, :updated_at
+    remove_column :controllers, :created_at
+    remove_column :controllers, :updated_at
+    remove_column :clusters, :created_at
+    remove_column :clusters, :updated_at
+    remove_column :blur_tables, :created_at
+  end
+
+  def self.down
+    add_column :shards, :created_at, :datetime
+    add_column :shards, :updated_at, :datetime
+    add_column :hdfs_stats, :updated_at, :datetime
+    add_column :hdfs, :created_at, :datetime
+    add_column :hdfs, :updated_at, :datetime
+    add_column :controllers, :created_at, :datetime
+    add_column :controllers, :updated_at, :datetime
+    add_column :clusters, :created_at, :datetime
+    add_column :clusters, :updated_at, :datetime
+    add_column :blur_tables, :created_at, :datetime
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111015191154_add_name_column_to_users.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111015191154_add_name_column_to_users.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111015191154_add_name_column_to_users.rb
new file mode 100644
index 0000000..e348e71
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111015191154_add_name_column_to_users.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddNameColumnToUsers < ActiveRecord::Migration
+  def self.up
+    add_column :users, :name, :string
+  end
+
+  def self.down
+    remove_column :users, :name
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111030120201_remove_node_location_column.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111030120201_remove_node_location_column.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111030120201_remove_node_location_column.rb
new file mode 100644
index 0000000..b8373fb
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111030120201_remove_node_location_column.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class RemoveNodeLocationColumn < ActiveRecord::Migration
+  def self.up
+    remove_column :shards, :node_location
+    remove_column :controllers, :node_location
+  end
+
+  def self.down
+    add_column :shards, :node_location, :string
+    add_column :controllers, :node_location, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111030120430_increase_size_of_query_column.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111030120430_increase_size_of_query_column.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111030120430_increase_size_of_query_column.rb
new file mode 100644
index 0000000..5753671
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111030120430_increase_size_of_query_column.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class IncreaseSizeOfQueryColumn < ActiveRecord::Migration
+  def self.up
+    change_column :blur_queries, :query_string, :text
+  end
+
+  def self.down
+    change_column :blur_queries, :query_string, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111130011338_change_host_port_to_url.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111130011338_change_host_port_to_url.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111130011338_change_host_port_to_url.rb
new file mode 100644
index 0000000..adc0d7f
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111130011338_change_host_port_to_url.rb
@@ -0,0 +1,29 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeHostPortToUrl < ActiveRecord::Migration
+  def self.up
+    remove_columns(:zookeepers, :host, :port)
+    add_column(:zookeepers, :blur_urls, :string, :limit=>4000)
+  end
+
+  def self.down
+    add_column :zookeepers, :host, :string
+    add_column :zookeepers, :port, :string
+    remove_column :zookeepers, :blur_urls
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111219160043_add_record_only_to_search.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111219160043_add_record_only_to_search.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111219160043_add_record_only_to_search.rb
new file mode 100644
index 0000000..bac3105
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111219160043_add_record_only_to_search.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddRecordOnlyToSearch < ActiveRecord::Migration
+  def self.up
+    add_column :searches, :record_only, :boolean, :default => 0
+  end
+
+  def self.down
+    remove_column :searches, :record_only
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20111229213416_change_licenses_to_add_node_info.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20111229213416_change_licenses_to_add_node_info.rb b/contrib/blur-console-old/blur-admin/db/migrate/20111229213416_change_licenses_to_add_node_info.rb
new file mode 100644
index 0000000..b1a8fb9
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20111229213416_change_licenses_to_add_node_info.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeLicensesToAddNodeInfo < ActiveRecord::Migration
+  def self.up
+    add_column :licenses, :node_overage, :int
+    add_column :licenses, :grace_period_days_remain, :int
+  end
+
+  def self.down
+    remove_column :licenses, :node_overage
+    remove_column :licenses, :grace_period_days_remain
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120110024452_update_license_table.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120110024452_update_license_table.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120110024452_update_license_table.rb
new file mode 100644
index 0000000..c05f6ee
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120110024452_update_license_table.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class UpdateLicenseTable < ActiveRecord::Migration
+  def self.up
+    add_column :licenses, :cluster_overage, :integer
+  end
+
+  def self.down
+    remove_column :licenses, :cluster_overage
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120226002653_change_blur_tables_updated_at.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120226002653_change_blur_tables_updated_at.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120226002653_change_blur_tables_updated_at.rb
new file mode 100644
index 0000000..67c8b6e
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120226002653_change_blur_tables_updated_at.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeBlurTablesUpdatedAt < ActiveRecord::Migration
+  def up
+    change_column :blur_tables, :updated_at, :datetime, {:null => true}
+  end
+
+  def down
+    change_column :blur_tables, :updated_at, :datetime, {:null => false}
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120309015311_add_safe_mode.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120309015311_add_safe_mode.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120309015311_add_safe_mode.rb
new file mode 100644
index 0000000..76a1e8a
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120309015311_add_safe_mode.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddSafeMode < ActiveRecord::Migration
+  def up
+    add_column :clusters, :safe_mode, :boolean
+  end
+
+  def down
+    remove_column :clusters, :safe_mode
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120604180240_add_record_only_to_blur_queries.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120604180240_add_record_only_to_blur_queries.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120604180240_add_record_only_to_blur_queries.rb
new file mode 100644
index 0000000..a5593de
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120604180240_add_record_only_to_blur_queries.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddRecordOnlyToBlurQueries < ActiveRecord::Migration
+  def self.up
+    add_column :blur_queries, :record_only, :boolean
+  end
+
+  def self.down
+    remove_column :blur_queries, :record_only
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120615195724_change_query_string_to_medium_text_datatype.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120615195724_change_query_string_to_medium_text_datatype.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120615195724_change_query_string_to_medium_text_datatype.rb
new file mode 100644
index 0000000..077302e
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120615195724_change_query_string_to_medium_text_datatype.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeQueryStringToMediumTextDatatype < ActiveRecord::Migration
+  def up
+    change_column :blur_queries, :query_string, :text, :limit=>16777215
+  end
+
+  def down
+    change_column :blur_queries, :query_string, :text
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120618225024_change_type_to_smaller_size_med_text.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120618225024_change_type_to_smaller_size_med_text.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120618225024_change_type_to_smaller_size_med_text.rb
new file mode 100644
index 0000000..f42f960
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120618225024_change_type_to_smaller_size_med_text.rb
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeTypeToSmallerSizeMedText < ActiveRecord::Migration
+  def up
+    change_column :blur_queries, :query_string, :text, :limit => 64.kilobytes + 1
+  end
+
+  def down
+    change_column :blur_queries, :query_string, :text, :limit => 16777215
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120621155420_add_comments_column_to_blur_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120621155420_add_comments_column_to_blur_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120621155420_add_comments_column_to_blur_tables.rb
new file mode 100644
index 0000000..a65fbf2
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120621155420_add_comments_column_to_blur_tables.rb
@@ -0,0 +1,27 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddCommentsColumnToBlurTables < ActiveRecord::Migration
+  def self.up
+    add_column :blur_tables, :comments, :string
+  end
+  
+  def self.down
+    remove_column :blur_tables, :comments
+  end
+
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120807191217_create_audits.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120807191217_create_audits.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120807191217_create_audits.rb
new file mode 100644
index 0000000..ed6efd9
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120807191217_create_audits.rb
@@ -0,0 +1,29 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class CreateAudits < ActiveRecord::Migration
+  def change
+    create_table :audits do |t|
+      t.string :user
+      t.integer :mutation
+      t.integer :model_affected
+      t.string :action
+
+      t.timestamps
+    end
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120807192046_change_audit_integers_to_strings.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120807192046_change_audit_integers_to_strings.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120807192046_change_audit_integers_to_strings.rb
new file mode 100644
index 0000000..9c1bbf4
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120807192046_change_audit_integers_to_strings.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeAuditIntegersToStrings < ActiveRecord::Migration
+  def up
+    change_column :audits, :mutation, :string
+    change_column :audits, :model_affected, :string
+  end
+
+  def down
+    change_column :audits, :mutation, :integer
+    change_column :audits, :model_affected, :integer
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120808182829_change_user_to_user_id.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120808182829_change_user_to_user_id.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120808182829_change_user_to_user_id.rb
new file mode 100644
index 0000000..62ea3d7
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120808182829_change_user_to_user_id.rb
@@ -0,0 +1,28 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeUserToUserId < ActiveRecord::Migration
+  def up
+    change_column :audits, :user, :integer
+    rename_column :audits, :user, :user_id
+  end
+
+  def down
+    rename_column :audits, :user_id, :user
+    change_column :audits, :user, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120813192325_change_used_to_both_logical_and_real.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120813192325_change_used_to_both_logical_and_real.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120813192325_change_used_to_both_logical_and_real.rb
new file mode 100644
index 0000000..b2e09d0
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120813192325_change_used_to_both_logical_and_real.rb
@@ -0,0 +1,25 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeUsedToBothLogicalAndReal < ActiveRecord::Migration
+  def change
+    change_table :hdfs_stats do |t|
+      t.rename :dfs_used, :dfs_used_real
+      t.integer :dfs_used_logical
+    end
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120813203219_fix_integer_length_for_logical_column.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120813203219_fix_integer_length_for_logical_column.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120813203219_fix_integer_length_for_logical_column.rb
new file mode 100644
index 0000000..53d3814
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120813203219_fix_integer_length_for_logical_column.rb
@@ -0,0 +1,24 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class FixIntegerLengthForLogicalColumn < ActiveRecord::Migration
+  def change
+    change_table :hdfs_stats do |t|
+      t.change :dfs_used_logical, :integer, :limit => 8
+    end
+  end
+end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120820073548_update_collation_on_all_tables.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120820073548_update_collation_on_all_tables.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120820073548_update_collation_on_all_tables.rb
new file mode 100644
index 0000000..a792f43
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120820073548_update_collation_on_all_tables.rb
@@ -0,0 +1,59 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class UpdateCollationOnAllTables < ActiveRecord::Migration
+  def up
+    execute "ALTER TABLE audits DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE audits CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE blur_queries DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE blur_queries CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE blur_tables DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE blur_tables CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE clusters DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE clusters CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE controllers DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE controllers CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE hdfs DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE hdfs CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE hdfs_stats DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE hdfs_stats CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE licenses DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE licenses CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE preferences DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE preferences CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE searches DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE searches CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE shards DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE shards CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE users DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE users CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+    
+    execute "ALTER TABLE zookeepers DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
+    execute "ALTER TABLE zookeepers CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin"
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120824172333_change_controllersto_blur_controllers.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120824172333_change_controllersto_blur_controllers.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120824172333_change_controllersto_blur_controllers.rb
new file mode 100644
index 0000000..c3811a8
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120824172333_change_controllersto_blur_controllers.rb
@@ -0,0 +1,22 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeControllerstoBlurControllers < ActiveRecord::Migration
+  def change
+    rename_table :controllers, :blur_controllers
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120824174553_change_shardto_blur_shards.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120824174553_change_shardto_blur_shards.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120824174553_change_shardto_blur_shards.rb
new file mode 100644
index 0000000..3bb2e54
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120824174553_change_shardto_blur_shards.rb
@@ -0,0 +1,22 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class ChangeShardtoBlurShards < ActiveRecord::Migration
+  def change
+    rename_table :shards, :blur_shards
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120827172222_add_zookeeper_to_audits.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120827172222_add_zookeeper_to_audits.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120827172222_add_zookeeper_to_audits.rb
new file mode 100644
index 0000000..5622439
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120827172222_add_zookeeper_to_audits.rb
@@ -0,0 +1,22 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddZookeeperToAudits < ActiveRecord::Migration
+  def change
+    add_column :audits, :zookeeper_affected, :string
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120926202222_add_pre_filter_to_search.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120926202222_add_pre_filter_to_search.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120926202222_add_pre_filter_to_search.rb
new file mode 100644
index 0000000..58bf9b4
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120926202222_add_pre_filter_to_search.rb
@@ -0,0 +1,23 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddPreFilterToSearch < ActiveRecord::Migration
+  def change
+    add_column :searches, :pre_filter, :text
+
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20120926202240_add_post_filter_to_search.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20120926202240_add_post_filter_to_search.rb b/contrib/blur-console-old/blur-admin/db/migrate/20120926202240_add_post_filter_to_search.rb
new file mode 100644
index 0000000..404234b
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20120926202240_add_post_filter_to_search.rb
@@ -0,0 +1,23 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddPostFilterToSearch < ActiveRecord::Migration
+  def change
+    add_column :searches, :post_filter, :text
+
+  end
+end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/688e9d08/contrib/blur-console-old/blur-admin/db/migrate/20121025175857_add_online_ensemble_nodes.rb
----------------------------------------------------------------------
diff --git a/contrib/blur-console-old/blur-admin/db/migrate/20121025175857_add_online_ensemble_nodes.rb b/contrib/blur-console-old/blur-admin/db/migrate/20121025175857_add_online_ensemble_nodes.rb
new file mode 100644
index 0000000..f177616
--- /dev/null
+++ b/contrib/blur-console-old/blur-admin/db/migrate/20121025175857_add_online_ensemble_nodes.rb
@@ -0,0 +1,22 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#  http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+class AddOnlineEnsembleNodes < ActiveRecord::Migration
+  def change
+    add_column :zookeepers, :online_ensemble_nodes, :string
+  end
+end


Mime
View raw message