sql migrations

This commit is contained in:
Sanj 2012-07-27 14:19:00 +05:30
parent 8ec6b0870c
commit da9c31dc13

View File

@ -0,0 +1,23 @@
BEGIN;
-- Application: scriptbank
-- Model: Script
ALTER TABLE `scriptbank_script`
DROP COLUMN `user_id`;
ALTER TABLE `scriptbank_script`
ADD `added_by_id` integer;
CREATE INDEX `scriptbank_script_added_by_id_idx`
ON `scriptbank_script` (`added_by_id`);
COMMIT;
BEGIN;
-- Application: itfprofiles
-- Model: Location
ALTER TABLE `itfprofiles_location`
MODIFY `object_id` integer UNSIGNED;
-- Model: Production
ALTER TABLE `itfprofiles_production`
DROP COLUMN `play_id`;
ALTER TABLE `itfprofiles_production`
ADD `script_id` integer;
CREATE INDEX `itfprofiles_production_script_id_idx`
ON `itfprofiles_production` (`script_id`);
COMMIT;