Changeset 712 for trunk/sql/updates/650.sql
- Timestamp:
- Jul 30, 2013, 11:34:19 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 minimanager 6 6 mmfpm 7 .settings 8 .buildpath 9 .project
-
- Property svn:ignore
-
trunk/sql/updates/650.sql
r681 r712 65 65 ALTER TABLE `Logon` ADD `Port` INT NOT NULL ; 66 66 67 ALTER TABLE `articles` CHANGE `id` `Id` INT( 11 ) NOT NULL AUTO_INCREMENT , 68 CHANGE `title` `Title` TEXT CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL , 69 CHANGE `autor` `Author` TEXT CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL , 70 CHANGE `category` `Category` INT( 11 ) NOT NULL DEFAULT '0', 71 CHANGE `text` `Content` TEXT CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL , 72 CHANGE `date` `Time` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'; 73 74 RENAME TABLE `articles` TO `Article` ; 75 ALTER TABLE `Article` ENGINE = InnoDB; 76 77 ALTER TABLE `Article` ADD INDEX ( `Category` ) ; 78 79 CREATE TABLE IF NOT EXISTS `ArticleCategory` ( 80 `Id` int(11) NOT NULL auto_increment, 81 `Name` varchar(255) NOT NULL, 82 PRIMARY KEY (`Id`) 83 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; 84 85 INSERT INTO `ArticleCategory` (`Id`, `Name`) VALUES 86 (1, 'Server novinky'), 87 (2, 'GM novinky'), 88 (3, 'In-game novinky'), 89 (4, 'Články'); 90 91 ALTER TABLE `Article` ADD FOREIGN KEY ( `Category` ) REFERENCES `ArticleCategory` (`Id`); 92
Note:
See TracChangeset
for help on using the changeset viewer.