aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorRobert2017-11-30 19:12:11 +0100
committerRobert2017-11-30 19:12:11 +0100
commitf98cd834d37b007ca8f30c48d8694e1f669f32a3 (patch)
tree0ab4c5026e2f998dc4893129c99586df7d72e3f7 /db/migrate
parenta2896b1db4db22eef587c2ae801c7a0d393c729f (diff)
downloadchouette-core-f98cd834d37b007ca8f30c48d8694e1f669f32a3.tar.bz2
Fixes: #5130@0.5h; Added a quickfix for incorrect item_id type in versions5130-del_fk_compliance_ctrl_set_in_compliance_check_sets
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb b/db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb
new file mode 100644
index 000000000..b1e6ca0a6
--- /dev/null
+++ b/db/migrate/20171130180144_change_item_id_in_versions_to_bigint.rb
@@ -0,0 +1,8 @@
+class ChangeItemIdInVersionsToBigint < ActiveRecord::Migration
+ def up
+ change_column :versions, :item_id, :integer, limit: 8, null: false
+ end
+ def down
+ change_column :versions, :item_id, :integer, null: false
+ end
+end