From a8c10facd9767b1105a6798cb8c2ceba5d59835b Mon Sep 17 00:00:00 2001 From: John Woodlock Date: Wed, 10 Apr 2013 11:22:11 +0100 Subject: [PATCH] change status_id to status_enum --- .../migrations/core_db/V14__rename_status_id_to_enum.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mifosng-db/migrations/core_db/V14__rename_status_id_to_enum.sql diff --git a/mifosng-db/migrations/core_db/V14__rename_status_id_to_enum.sql b/mifosng-db/migrations/core_db/V14__rename_status_id_to_enum.sql new file mode 100644 index 000000000..8e43f31fa --- /dev/null +++ b/mifosng-db/migrations/core_db/V14__rename_status_id_to_enum.sql @@ -0,0 +1,8 @@ + +ALTER TABLE m_group CHANGE COLUMN `status_id` `status_enum` INT(5) NOT NULL DEFAULT '300' ; + +ALTER TABLE m_client CHANGE COLUMN `status_id` `status_enum` INT(5) NOT NULL DEFAULT '300' ; + +update r_enum_value +set enum_name = 'status_enum' +where enum_name = 'status_id'; \ No newline at end of file