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;
