itf/migrations/sqldiff260712.sql

24 lines
641 B
MySQL
Raw Permalink Normal View History

2012-07-27 08:49:00 +00:00
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;