Skip to content

Commit

Permalink
Remove unused columns and set up for prefix column
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Jan 23, 2024
1 parent 4189851 commit 43c9ac2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bot/migrations/V3__perms_and_config_changes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- Revision Version: V3
-- Revises: V2
-- Creation Date: 2024-01-23 08:41:08.795638 UTC
-- Reason: perms and config changes

-- Remove this column as it was never used
ALTER TABLE IF EXISTS guild_config DROP COLUMN locked;

-- Also in lieu with permissions based commands,
-- we don't need to store perms levels on users
ALTER TABLE IF EXISTS user_config DROP COLUMN permission_level;

-- Allow for custom prefixes to be stored. This is simply setup work
-- for another feature
ALTER TABLE IF EXISTS guild_config ADD COLUMN prefix TEXT[];

0 comments on commit 43c9ac2

Please sign in to comment.