forked from compdemocracy/polis
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for proper database migrations (fix pwreset table) (compd…
…emocracy#542) * Removed empty script file. * Reorganized files for easier database migrations. Documented manual migrations. * Improved inline comment for db init. * Added disclaimer about backups.
- Loading branch information
Showing
10 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
FROM postgres:12.4-alpine | ||
|
||
COPY ./postgres/db_setup_draft.sql /docker-entrypoint-initdb.d/ | ||
# Used when no existing database on postgres volume, including first initialization. | ||
# See: docs/deployment.md#database-migrations | ||
# See: https://github.com/docker-library/docs/blob/master/postgres/README.md#initialization-scripts | ||
COPY ./postgres/migrations/*.sql /docker-entrypoint-initdb.d/ |
Empty file.
File renamed without changes.
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,2 @@ | ||
ALTER TABLE password_reset_tokens RENAME COLUMN pwresettoken TO token; | ||
ALTER TABLE password_reset_tokens RENAME TO pwreset_tokens; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.