Ignore:
Timestamp:
Jan 24, 2010, 8:05:10 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Nově rozšířená tabulka dokladových řad pro podporu oddělených účetních roků.
  • Opraveno: Nové volání funkcí pro IPv4 ze skriptů generování nastavení sítě.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sql/updates/272.sql

    r272 r275  
    11ALTER 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;
    52
    63CREATE TABLE IF NOT EXISTS `NetworkInterfacePortable` (
     
    1310  KEY `NetworkInterface` (`NetworkInterface`),
    1411  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
     15DROP TABLE IF EXISTS `DocumentLineSequence`;
     16CREATE 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
     28INSERT INTO DocumentLineSequence (SELECT "" AS Id, Id AS DocumentLine, 3 AS FinanceYear, NextNumber, 0 AS YearPrefix FROM `DocumentLine`);
     29INSERT INTO DocumentLineSequence (SELECT "" AS Id, Id AS DocumentLine, 4 AS FinanceYear, 1 AS NextNumber, 1 AS YearPrefix FROM `DocumentLine`);
     30
     31ALTER TABLE `DocumentLine` DROP `NextNumber` ;
Note: See TracChangeset for help on using the changeset viewer.