Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

[DONOTMERGE] clean up SQL after api migration #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

philhug
Copy link
Member

@philhug philhug commented Mar 18, 2018

remove debug, unused ammendment and translation features.
the following changes are applied:

BEGIN;

SET FOREIGN_KEY_CHECKS = 0;

DROP TABLE `P1L`;
DROP TABLE `G5T`;
DROP TABLE `G4A3`;
DROP TABLE `DEBUG`;
DROP TABLE `AMMNT_ACTIVITYDATARECORDER`;
DROP TABLE `G1T`;
DROP TABLE `G4A2`;
DROP TABLE `S2L`;
DROP TABLE `S1L`;
DROP TABLE `G4A1`;
DROP TABLE `G4T`;
DROP TABLE `U13`;
DROP TABLE `G4A4`;
DROP TABLE `S3L`;
DROP TABLE `S5L`;
DROP TABLE `U2L`;
DROP TABLE `G2T`;
DROP TABLE `U14`;
DROP TABLE `U15`;

ALTER TABLE `O1A1` DROP COLUMN `Hidden`;
ALTER TABLE `O1A1` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A2` DROP INDEX `index1`;
ALTER TABLE `S2A2` DROP COLUMN `deleted`;
ALTER TABLE `S2A2` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S2A2` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A2` ADD INDEX `index1` (`ServiceID`, `ServicePropertiesTypeID`);
ALTER TABLE `S3A7` DROP INDEX `Index3`;
ALTER TABLE `S3A7` DROP INDEX `Index2`;
ALTER TABLE `S3A7` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A7` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S3A7` DROP COLUMN `deleted`;
ALTER TABLE `S3A7` DROP COLUMN `UserID`;
ALTER TABLE `S3A2` DROP INDEX `index3`;
ALTER TABLE `S3A2` DROP INDEX `index5`;
ALTER TABLE `S3A2` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A2` DROP COLUMN `UserID`;
ALTER TABLE `S3A2` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S3A2` DROP COLUMN `deleted`;
ALTER TABLE `S3A3` DROP INDEX `Index3`;
ALTER TABLE `S3A3` DROP INDEX `index5`;
ALTER TABLE `S3A3` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A3` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S3A3` DROP COLUMN `UserID`;
ALTER TABLE `S3A3` DROP COLUMN `deleted`;
ALTER TABLE `U2A6` DROP INDEX `index2`;
ALTER TABLE `U2A6` DROP COLUMN `Hidden`;
ALTER TABLE `U2A6` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `O1A3` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `O1A3` DROP COLUMN `Hidden`;
ALTER TABLE `S2A7` DROP INDEX `index1`;
ALTER TABLE `S2A7` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A7` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S2A7` DROP COLUMN `deleted`;
ALTER TABLE `S2A7` ADD INDEX `index1` (`ServiceID`, `ServicePropertiesTypeID`);
ALTER TABLE `S3A5` DROP INDEX `index3`;
ALTER TABLE `S3A5` DROP INDEX `index5`;
ALTER TABLE `S3A5` DROP COLUMN `deleted`;
ALTER TABLE `S3A5` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A5` DROP COLUMN `UserID`;
ALTER TABLE `S3A5` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `O1A6` DROP COLUMN `Hidden`;
ALTER TABLE `O1A6` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A6` DROP INDEX `index1`;
ALTER TABLE `S2A6` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A6` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S2A6` DROP COLUMN `deleted`;
ALTER TABLE `S2A6` ADD INDEX `index1` (`ServiceID`, `ServicePropertiesTypeID`);
ALTER TABLE `U2A7` DROP INDEX `index2`;
ALTER TABLE `U2A7` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `U2A7` DROP COLUMN `Hidden`;
ALTER TABLE `U2A4` DROP INDEX `index2`;
ALTER TABLE `U2A4` DROP COLUMN `Hidden`;
ALTER TABLE `U2A4` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `U2A5` DROP INDEX `index2`;
ALTER TABLE `U2A5` DROP COLUMN `Hidden`;
ALTER TABLE `U2A5` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `O1A4` DROP COLUMN `Hidden`;
ALTER TABLE `O1A4` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A5` DROP INDEX `index1`;
ALTER TABLE `S2A5` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S2A5` DROP COLUMN `deleted`;
ALTER TABLE `S2A5` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A5` ADD INDEX `index1` (`ServiceID`, `ServicePropertiesTypeID`);
ALTER TABLE `U2A1` DROP INDEX `Index2`;
ALTER TABLE `U2A1` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `U2A1` DROP COLUMN `Hidden`;
ALTER TABLE `U2A3` DROP INDEX `index2`;
ALTER TABLE `U2A3` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `U2A3` DROP COLUMN `Hidden`;
ALTER TABLE `O1A2` DROP COLUMN `Hidden`;
ALTER TABLE `O1A2` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A3` DROP INDEX `index1`;
ALTER TABLE `S2A3` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A3` DROP COLUMN `deleted`;
ALTER TABLE `S2A3` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S2A3` ADD INDEX `index1` (`ServiceID`, `ServicePropertiesTypeID`);
ALTER TABLE `S3A1` DROP INDEX `index3`;
ALTER TABLE `S3A1` DROP INDEX `index5`;
ALTER TABLE `S3A1` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A1` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S3A1` DROP COLUMN `UserID`;
ALTER TABLE `S3A1` DROP COLUMN `deleted`;
ALTER TABLE `O1A7` DROP COLUMN `Hidden`;
ALTER TABLE `O1A7` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A4` DROP INDEX `index5`;
ALTER TABLE `S3A4` DROP INDEX `index3`;
ALTER TABLE `S3A4` DROP COLUMN `deleted`;
ALTER TABLE `S3A4` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S3A4` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A4` DROP COLUMN `UserID`;
ALTER TABLE `S2A4` DROP INDEX `index1`;
ALTER TABLE `S2A4` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A4` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S2A4` DROP COLUMN `deleted`;
ALTER TABLE `S2A4` ADD INDEX `index1` (`ServiceID`, `ServicePropertiesTypeID`);
ALTER TABLE `U2A2` DROP INDEX `index2`;
ALTER TABLE `U2A2` DROP COLUMN `Hidden`;
ALTER TABLE `U2A2` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A1` DROP INDEX `index2`;
ALTER TABLE `S2A1` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S2A1` DROP COLUMN `deleted`;
ALTER TABLE `S2A1` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S2A1` ADD INDEX `index2` (`ServiceID`, `ServicePropertiesTypeID`);
ALTER TABLE `U1T` DROP COLUMN `openIdProvider`;
ALTER TABLE `U1T` DROP COLUMN `openIdSubject`;
ALTER TABLE `S3A6` DROP INDEX `index3`;
ALTER TABLE `S3A6` DROP INDEX `index5`;
ALTER TABLE `S3A6` DROP COLUMN `ammnt_FirId`;
ALTER TABLE `S3A6` DROP COLUMN `IonChangeTimestamp`;
ALTER TABLE `S3A6` DROP COLUMN `UserId`;
ALTER TABLE `S3A6` DROP COLUMN `deleted`;
ALTER TABLE `U3T` DROP INDEX `index1`;
ALTER TABLE `O1A5` DROP COLUMN `Hidden`;
ALTER TABLE `O1A5` DROP COLUMN `IonChangeTimestamp`;

SET FOREIGN_KEY_CHECKS = 1;

COMMIT;

remove debug, unused ammendment and translation features
@philhug
Copy link
Member Author

philhug commented Mar 18, 2018

DO NOT MERGE YET!

@philhug philhug changed the title clean up SQL after api migration [DONOTMERGE] clean up SQL after api migration Mar 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant