- Timestamp:
- Oct 18, 2012, 10:51:41 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sql/updates/446.sql
r447 r450 3 3 RENAME TABLE `Product` TO `ProductOld` ; 4 4 RENAME TABLE `StockCard` TO `Product` ; 5 ALTER TABLE `Product` CHANGE `Code` `Code` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_czech_ci NULL ; 5 6 6 7 DROP TABLE IF EXISTS `StockItem`; … … 28 29 ADD CONSTRAINT `StockItem_ibfk_3` FOREIGN KEY (`Location`) REFERENCES `Member` (`Id`), 29 30 ADD CONSTRAINT `StockItem_ibfk_5` FOREIGN KEY (`Product`) REFERENCES `Product` (`Id`); 31 ALTER TABLE `StockItem` CHANGE `Segment` `Segment` INT( 11 ) NULL; 32 ALTER TABLE `StockItem` ADD `Info` TEXT NOT NULL ; 30 33 31 34 ALTER TABLE `Stock` ADD `Location` INT NULL , ADD INDEX ( `Location` ); 32 35 ALTER TABLE `Stock` ADD FOREIGN KEY ( `Location` ) REFERENCES `Member` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 36 37 38 33 39 34 40
Note:
See TracChangeset
for help on using the changeset viewer.