-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add schema replacement for PostgreSQL
- Loading branch information
Showing
5 changed files
with
47 additions
and
36 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
17 changes: 9 additions & 8 deletions
17
necrify-common/src/main/resources/database/postgresql/1/patch_2.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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
CREATE TABLE IF NOT EXISTS punishment_log ( | ||
id SERIAL PRIMARY KEY, | ||
CREATE TABLE IF NOT EXISTS necrify_schema.punishment_log ( | ||
id INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY, | ||
punishment_id UUID, | ||
player_id UUID REFERENCES necrify_users (uuid) ON DELETE SET NULL, | ||
message TEXT, | ||
expiration TIMESTAMP, | ||
reason TEXT, | ||
player_id UUID REFERENCES necrify_schema.necrify_user (uuid) ON DELETE SET NULL, | ||
message TEXT DEFAULT NULL, | ||
expiration TIMESTAMP DEFAULT NULL, | ||
reason TEXT DEFAULT NULL, | ||
predecessor UUID DEFAULT NULL, | ||
successor UUID DEFAULT NULL, | ||
action VARCHAR(128), | ||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | ||
action VARCHAR(128) NOT NULL, | ||
begins_at TIMESTAMP DEFAULT NULL, | ||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
) |
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