Changeset 507 for trunk/sql/updates/479.sql
- Timestamp:
- Apr 1, 2013, 7:14:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sql/updates/479.sql
r486 r507 46 46 -- Transform data from FinanceTariff 47 47 INSERT INTO Service (SELECT Id AS Id, Name, `Group` AS Category, Price, MemberCount AS CustomerCount, 48 ReplaceId, Public, SpeedM ax AS InternetSpeedMax, SpeedMin AS InternetSpeedMin,48 ReplaceId, Public, SpeedMin AS InternetSpeedMin, SpeedMax AS InternetSpeedMax, 49 49 UploadAsymmetry, 0 AS Memory, 0 AS MemorySwap, 0 AS Storage, 0 AS CPUCount FROM FinanceTariff); 50 50 51 INSERT INTO ServiceCustomerRel (SELECT NULL AS Id, InternetTariffCurrentMonth AS Ser ice, Id AS Customer, 0 AS Period FROM `Member`);52 INSERT INTO ServiceCustomerRel (SELECT NULL AS Id, InternetTariffNextMonth AS Ser ice, Id AS Customer, 1 AS Period FROM `Member`);51 INSERT INTO ServiceCustomerRel (SELECT NULL AS Id, InternetTariffCurrentMonth AS Service, Id AS Customer, 0 AS Period FROM `Member`); 52 INSERT INTO ServiceCustomerRel (SELECT NULL AS Id, InternetTariffNextMonth AS Service, Id AS Customer, 1 AS Period FROM `Member`); 53 53 54 54 ALTER TABLE `Member` DROP FOREIGN KEY `Member_ibfk_25` ;
Note:
See TracChangeset
for help on using the changeset viewer.