[PATCH conductor 1/2] Fix this migration so it also works on sqlite.
Jason Guiditta
jguiditt at redhat.com
Thu Dec 1 21:16:45 UTC 2011
While sqlite is not the ideal db to run conductor on, we
should attempt to at least keep it mostly usable for web app
development. Updated this migration with same fix markmc applied
months ago to another like this with patch a8d0f73693859b63d9831da607d9bdc6093b9afb
---
...amed_suggested_deployable_to_catalog_entries.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/db/migrate/20110816192727_renamed_suggested_deployable_to_catalog_entries.rb b/src/db/migrate/20110816192727_renamed_suggested_deployable_to_catalog_entries.rb
index db94244..9e4c7b6 100644
--- a/src/db/migrate/20110816192727_renamed_suggested_deployable_to_catalog_entries.rb
+++ b/src/db/migrate/20110816192727_renamed_suggested_deployable_to_catalog_entries.rb
@@ -19,7 +19,8 @@
class RenamedSuggestedDeployableToCatalogEntries < ActiveRecord::Migration
def self.up
rename_table :suggested_deployables, :catalog_entries
- add_column :catalog_entries, :catalog_id, :integer, :null => false
+ add_column :catalog_entries, :catalog_id, :integer
+ change_column :catalog_entries, :catalog_id, :integer, :null => false
end
def self.down
--
1.7.6.4
More information about the aeolus-devel
mailing list