-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #618 from ZakarFin/table-names
Update view/appsetup database tables
- Loading branch information
Showing
8 changed files
with
91 additions
and
96 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 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
26 changes: 26 additions & 0 deletions
26
content-resources/src/main/resources/flyway/oskari/V2_0_5__rename_tables.sql
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,26 @@ | ||
ALTER TABLE portti_bundle RENAME TO oskari_bundle; | ||
|
||
ALTER TABLE oskari_bundle | ||
ALTER COLUMN name TYPE TEXT, | ||
ALTER COLUMN config TYPE TEXT, | ||
ALTER COLUMN state TYPE TEXT, | ||
DROP COLUMN startup; | ||
|
||
ALTER TABLE portti_view RENAME TO oskari_appsetup; | ||
|
||
ALTER TABLE oskari_appsetup | ||
ALTER COLUMN name TYPE TEXT, | ||
ALTER COLUMN description TYPE TEXT, | ||
ALTER COLUMN application TYPE TEXT, | ||
ALTER COLUMN domain TYPE TEXT, | ||
DROP COLUMN application_dev_prefix, | ||
DROP COLUMN old_id; | ||
|
||
ALTER TABLE portti_view_bundle_seq RENAME TO oskari_appsetup_bundles; | ||
|
||
ALTER TABLE oskari_appsetup_bundles | ||
ALTER COLUMN bundleinstance TYPE TEXT, | ||
DROP COLUMN startup; | ||
|
||
ALTER TABLE oskari_appsetup_bundles | ||
RENAME COLUMN view_id TO appsetup_id; |
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
Oops, something went wrong.