-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove institute / region / province / city
Leave institute_id as a simple string ID, to be used with an external database of institutes (fetched from olimanager). See olimpiadi-informatica/training-frontend#13
- Loading branch information
Showing
5 changed files
with
25 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
BEGIN; | ||
|
||
ALTER TABLE | ||
social_users DROP COLUMN institute_id; | ||
|
||
DROP TABLE institutes; | ||
|
||
DROP TABLE cities; | ||
|
||
DROP TABLE provinces; | ||
|
||
DROP TABLE regions; | ||
|
||
ALTER TABLE | ||
social_users | ||
ADD | ||
COLUMN institute_id VARCHAR; | ||
|
||
CREATE INDEX ON social_users (institute_id); | ||
|
||
ROLLBACK; |