Changeset 486 for trunk/sql/updates/479.sql
- Timestamp:
- Feb 10, 2013, 9:20:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sql/updates/479.sql
r482 r486 41 41 ADD CONSTRAINT `Service_ibfk_1` FOREIGN KEY (`Category`) REFERENCES `ServiceCategory` (`Id`); 42 42 43 ALTER TABLE `ServiceCustomerRel` ADD FOREIGN KEY ( `Service` ) REFERENCES `Service` ( 44 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 45 43 46 -- Transform data from FinanceTariff 44 47 INSERT INTO Service (SELECT Id AS Id, Name, `Group` AS Category, Price, MemberCount AS CustomerCount, … … 60 63 ALTER TABLE `Service` ADD INDEX ( `ReplaceId` ) ; 61 64 ALTER TABLE `Service` ADD FOREIGN KEY ( `ReplaceId` ) REFERENCES `Service` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 65
Note:
See TracChangeset
for help on using the changeset viewer.