Ignore:
Timestamp:
Mar 1, 2013, 10:44:18 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Přepočítávání stavu placení zákazníků.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/Updates.php

    r493 r494  
    66}
    77
     8function UpdateTo494($Manager)
     9{     
     10  $Manager->Execute("ALTER TABLE `FinanceOperation` DROP FOREIGN KEY `FinanceOperation_ibfk_2` ;\n".
     11    "ALTER TABLE `FinanceOperation` CHANGE `Bill` `File` INT( 11 ) NULL DEFAULT NULL;\n".
     12    "ALTER TABLE `FinanceOperation` ADD FOREIGN KEY ( `File` ) REFERENCES `File` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;");
     13}
     14
     15
     16
    817$Updates = array(
    918        491 => array('Revision' => 493, 'Function' => 'UpdateTo493'),
     19  493 => array('Revision' => 494, 'Function' => 'UpdateTo494'),
    1020);
    1121
Note: See TracChangeset for help on using the changeset viewer.