Changeset 591 for trunk/Modules


Ignore:
Timestamp:
Nov 2, 2013, 3:54:49 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Skladová položka nyní může mít nyní jako sestava podpoložky.
Location:
trunk/Modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Setup/Updates.php

    r590 r591  
    441441}
    442442
     443function UpdateTo591($Manager)
     444{
     445  $Manager->Execute('ALTER TABLE `StockItem` ADD `Esemble` INT NULL ,
     446ADD INDEX ( `Esemble` ) ;');
     447  $Manager->Execute('ALTER TABLE `StockItem` ADD FOREIGN KEY ( `Esemble` ) REFERENCES StockItem` (
     448`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
     449}
     450
    443451class Updates
    444452{
     
    468476  571 => array('Revision' => 574, 'Function' => 'UpdateTo574'),
    469477  574 => array('Revision' => 584, 'Function' => 'UpdateTo584'),
     478  584 => array('Revision' => 591, 'Function' => 'UpdateTo591'),
    470479));
    471480    }
  • trunk/Modules/Stock/Stock.php

    r586 r591  
    5050        'Segment' => array('Type' => 'TNetworkSegment', 'Caption' => 'Úsek sítě', 'Default' => '', 'Null' => true),
    5151        'Info' => array('Type' => 'Text', 'Caption' => 'Informace', 'Default' => ''),
     52        'Esemble' => array('Type' => 'TStockItem', 'Caption' => 'Celek', 'Default' => ''),
     53        'Parts' => array('Type' => 'TStockItemListStockItem', 'Caption' => 'Části', 'Default' => ''),         
    5254      ),
    5355    ));
Note: See TracChangeset for help on using the changeset viewer.