Changeset 620 for trunk/Common/Setup/Updates.php
- Timestamp:
- Dec 26, 2013, 11:01:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r619 r620 516 516 'ADD CONSTRAINT `NewsImport_ibfk_1` FOREIGN KEY (`Category`) '. 517 517 ' REFERENCES `NewsCategory` (`Id`);'); 518 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` ADD ` Product` INT NULL AFTER `AntennaPolarity` ,518 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` ADD `Antenna` INT NULL AFTER `AntennaPolarity` , 519 519 ADD INDEX ( `Product` ) ;'); 520 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` ADD FOREIGN KEY ( ` Product` ) REFERENCES `Product` (520 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` ADD FOREIGN KEY ( `Antenna` ) REFERENCES `Product` ( 521 521 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); 522 522 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` ADD `MAC` VARCHAR( 17 ) NOT NULL ;'); … … 526 526 { 527 527 $Manager->Execute('ALTER TABLE `UserOnline` ADD `StayLogged` INT NOT NULL ;'); 528 } 529 530 function UpdateTo620($Manager) 531 { 532 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` ADD `ChannelWidthLower` INT NOT NULL , 533 ADD `ChannelWidthUpper` INT NOT NULL ;'); 534 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` ADD `Mode` INT NOT NULL ;'); 535 $Manager->Execute('DROP TABLE `NetworkAP`'); 528 536 } 529 537 … … 560 568 601 => array('Revision' => 615, 'Function' => 'UpdateTo615'), 561 569 615 => array('Revision' => 619, 'Function' => 'UpdateTo619'), 570 620 => array('Revision' => 620, 'Function' => 'UpdateTo620'), 562 571 )); 563 572 }
Note:
See TracChangeset
for help on using the changeset viewer.