Changeset 275 for trunk/sql/updates/272.sql
- Timestamp:
- Jan 24, 2010, 8:05:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sql/updates/272.sql
r272 r275 1 1 ALTER TABLE `NetworkDomainAlias` ADD `Comment` VARCHAR( 255 ) NOT NULL ; 2 3 ALTER TABLE `DocumentLine` ADD `Year` INT NOT NULL AFTER `Name` ;4 UPDATE DocumentLine SET Year = 2009;5 2 6 3 CREATE TABLE IF NOT EXISTS `NetworkInterfacePortable` ( … … 13 10 KEY `NetworkInterface` (`NetworkInterface`), 14 11 KEY `Update` (`Update`) 15 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=4 ; 12 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci; 13 14 15 DROP TABLE IF EXISTS `DocumentLineSequence`; 16 CREATE TABLE IF NOT EXISTS `DocumentLineSequence` ( 17 `Id` int(11) NOT NULL auto_increment, 18 `DocumentLine` int(11) NOT NULL, 19 `FinanceYear` int(11) NOT NULL, 20 `NextNumber` int(11) NOT NULL, 21 `YearPrefix` int(11) NOT NULL, 22 PRIMARY KEY (`Id`), 23 KEY `DocumentLine` (`DocumentLine`), 24 KEY `FinanceYear` (`FinanceYear`) 25 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci; 26 27 28 INSERT INTO DocumentLineSequence (SELECT "" AS Id, Id AS DocumentLine, 3 AS FinanceYear, NextNumber, 0 AS YearPrefix FROM `DocumentLine`); 29 INSERT INTO DocumentLineSequence (SELECT "" AS Id, Id AS DocumentLine, 4 AS FinanceYear, 1 AS NextNumber, 1 AS YearPrefix FROM `DocumentLine`); 30 31 ALTER TABLE `DocumentLine` DROP `NextNumber` ;
Note:
See TracChangeset
for help on using the changeset viewer.