Skip to content

Commit

Permalink
Merge branch 'release/v1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
lmquang committed May 17, 2024
2 parents 006a395 + fc957bf commit e30c949
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
ALTER TABLE discord_accounts
RENAME COLUMN username TO discord_username;

UPDATE discord_accounts
SET discord_username = '' WHERE discord_username IS NULL;

ALTER TABLE discord_accounts
ALTER COLUMN discord_username SET NOT NULL,
ALTER COLUMN discord_username SET DEFAULT '';
Expand All @@ -23,5 +26,8 @@ ALTER TABLE discord_accounts
ALTER COLUMN discord_username DROP DEFAULT,
ALTER COLUMN discord_username DROP NOT NULL;

UPDATE discord_accounts
SET discord_username = NULL WHERE discord_username = '';

ALTER TABLE discord_accounts
RENAME COLUMN discord_username TO username;

0 comments on commit e30c949

Please sign in to comment.