Changeset 447 for trunk/sql/updates/446.sql
- Timestamp:
- Oct 16, 2012, 8:26:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sql/updates/446.sql
r446 r447 65 65 (5, 'Regionální'), 66 66 (6, 'Filmový'); 67 68 UPDATE `TV` SET `Category`=1 WHERE `Category`="Sportovní"; 69 UPDATE `TV` SET `Category`=2 WHERE `Category`="Zábavný"; 70 UPDATE `TV` SET `Category`=3 WHERE `Category`="Hudební"; 71 UPDATE `TV` SET `Category`=4 WHERE `Category`="Zpravodajský"; 72 UPDATE `TV` SET `Category`=5 WHERE `Category`="Regionální"; 73 UPDATE `TV` SET `Category`=6 WHERE `Category`="Filmový"; 74 ALTER TABLE `TV` CHANGE `Category` `Category` INT( 11 ) NULL ; 75 UPDATE `TV` SET `Category`=NULL WHERE `Category`=0; 76 ALTER TABLE `TV` ADD INDEX ( `Category` ); 77 ALTER TABLE `TV` ADD FOREIGN KEY ( `Category` ) REFERENCES `TVGroup` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;
Note:
See TracChangeset
for help on using the changeset viewer.