From f59e9a3f7ea3c5ad1f3a56e1e2c4159a2e14fb0d Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Thu, 26 Mar 2015 16:13:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0owner=5Ftype=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...20150318025244_add_owner_type_to_kind_editor_assets.rb | 5 +++++ ...150324021043_change_owner_type_in_kindeditor_assets.rb | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 db/migrate/20150318025244_add_owner_type_to_kind_editor_assets.rb create mode 100644 db/migrate/20150324021043_change_owner_type_in_kindeditor_assets.rb diff --git a/db/migrate/20150318025244_add_owner_type_to_kind_editor_assets.rb b/db/migrate/20150318025244_add_owner_type_to_kind_editor_assets.rb new file mode 100644 index 000000000..8a679c0d9 --- /dev/null +++ b/db/migrate/20150318025244_add_owner_type_to_kind_editor_assets.rb @@ -0,0 +1,5 @@ +class AddOwnerTypeToKindEditorAssets < ActiveRecord::Migration + def change + add_column :kindeditor_assets,:owner_type,:string + end +end diff --git a/db/migrate/20150324021043_change_owner_type_in_kindeditor_assets.rb b/db/migrate/20150324021043_change_owner_type_in_kindeditor_assets.rb new file mode 100644 index 000000000..67876e361 --- /dev/null +++ b/db/migrate/20150324021043_change_owner_type_in_kindeditor_assets.rb @@ -0,0 +1,8 @@ +class ChangeOwnerTypeInKindeditorAssets < ActiveRecord::Migration + def up + execute(" ALTER TABLE `kindeditor_assets` MODIFY COLUMN `owner_type` int(11) DEFAULT 0") + end + + def down + end +end