-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIM-1766: Added release script to rename the database and moved other…
… scripts to 01 folder
- Loading branch information
Michael Hostettler
committed
Oct 28, 2024
1 parent
d33cf62
commit 273c395
Showing
10 changed files
with
25 additions
and
2 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
23 changes: 23 additions & 0 deletions
23
cirras-underwriting-liquibase/scripts/03_00_xx/03_05_00/00/Readme.txt
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,23 @@ | ||
--The database needs to be renamed. | ||
|
||
DEV: pituwdev | ||
QA: pituwqa | ||
DLVR: pituwdlvr | ||
TEST: pituwtest | ||
PROD: pituwprod | ||
|
||
--Rename sql has to be run: ALTER DATABASE old_database_name RENAME TO new_database_name; | ||
|
||
DEV: ALTER DATABASE cirrasdev RENAME TO pituwdev; | ||
QA: ALTER DATABASE cirrasqa RENAME TO pituwqa; | ||
DLVR: ALTER DATABASE cirrasdlvr RENAME TO pituwdlvr; | ||
TEST: ALTER DATABASE cirrastest RENAME TO pituwtest; | ||
PROD: ALTER DATABASE cirrasprod RENAME TO pituwprod; | ||
|
||
|
||
Possible Error if there are sessions using the database: | ||
There are X other sessions using the database.database "cirras_dev" is being accessed by other users | ||
ERROR: database "cirrasdev" is being accessed by other users | ||
SQL state: 55006 | ||
|
||
Solution: SELECT pg_terminate_backend( pid ) FROM pg_stat_activity WHERE pid <> pg_backend_pid( ) AND datname = 'cirrasdev'; //WHERE cirrasdev is the old database name |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.