sql migrations
This commit is contained in:
parent
8ec6b0870c
commit
da9c31dc13
23
migrations/sqldiff260712.sql
Normal file
23
migrations/sqldiff260712.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user