-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added config to make add to queue responses for requester only (#1021)
Co-authored-by: Max Isom <[email protected]>
- Loading branch information
1 parent
cf775c4
commit 8e08919
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
migrations/20240419211843_add_queue_add_response_for_requester_only/migration.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- RedefineTables | ||
PRAGMA foreign_keys=OFF; | ||
CREATE TABLE "new_Setting" ( | ||
"guildId" TEXT NOT NULL PRIMARY KEY, | ||
"playlistLimit" INTEGER NOT NULL DEFAULT 50, | ||
"secondsToWaitAfterQueueEmpties" INTEGER NOT NULL DEFAULT 30, | ||
"leaveIfNoListeners" BOOLEAN NOT NULL DEFAULT true, | ||
"queueAddResponseEphemeral" BOOLEAN NOT NULL DEFAULT false, | ||
"autoAnnounceNextSong" BOOLEAN NOT NULL DEFAULT false, | ||
"defaultVolume" INTEGER NOT NULL DEFAULT 100, | ||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" DATETIME NOT NULL | ||
); | ||
INSERT INTO "new_Setting" ("autoAnnounceNextSong", "createdAt", "defaultVolume", "guildId", "leaveIfNoListeners", "playlistLimit", "secondsToWaitAfterQueueEmpties", "updatedAt") SELECT "autoAnnounceNextSong", "createdAt", "defaultVolume", "guildId", "leaveIfNoListeners", "playlistLimit", "secondsToWaitAfterQueueEmpties", "updatedAt" FROM "Setting"; | ||
DROP TABLE "Setting"; | ||
ALTER TABLE "new_Setting" RENAME TO "Setting"; | ||
PRAGMA foreign_key_check; | ||
PRAGMA foreign_keys=ON; |
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
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