3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 11:07:19 +00:00
zeppelin/backend/src/migrations
Dragory b28ca170ed
fix: standalone migrations
Recent fix for dropping/recreating PKs in environments with
sql_require_primary_key=1 also broke the migrations for environments
where the user doesn't have permissions to change the value of the
setting. The standalone setup is such an environment.

This commit changes those migrations so that the PKs are
dropped/recreated as one ALTER TABLE query, no longer requiring
changing the sql_require_primary_key setting.
2024-04-08 21:04:09 +03:00
..
1540519249973-CreatePreTypeORMTables.ts chore: fix lint errors; tweak lint rules 2023-05-08 22:58:51 +03:00
1543053430712-CreateMessagesTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1544877081073-CreateSlowmodeTables.ts fix: migrations with sql_require_primary_key=1 2024-04-06 11:49:45 +00:00
1544887946307-CreateStarboardTable.ts fix: migrations with sql_require_primary_key=1 2024-04-06 11:49:45 +00:00
1546770935261-CreateTagResponsesTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1546778415930-CreateNameHistoryTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1546788508314-MakeNameHistoryValueLengthLonger.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1547290549908-CreateAutoReactionsTable.ts fix: migrations with sql_require_primary_key=1 2024-04-06 11:49:45 +00:00
1547293464842-CreatePingableRolesTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1547392046629-AddIndexToArchivesExpiresAt.ts Add custom logger. Fix a bunch of errors. Optimize imports. 2020-07-22 22:56:21 +03:00
1547393619900-AddIsHiddenToCases.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1549649586803-AddPPFieldsToCases.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1550409894008-FixEmojiIndexInReactionRoles.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1550521627877-CreateSelfGrantableRolesTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1550609900261-CreateRemindersTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1556908589679-CreateUsernameHistoryTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1556909512501-MigrateUsernamesToNewHistoryTable.ts chore: fix lint errors; tweak lint rules 2023-05-08 22:58:51 +03:00
1556913287547-TurnNameHistoryToNicknameHistory.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1556973844545-CreateScheduledPostsTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1558804433320-CreateDashboardLoginsTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1558804449510-CreateDashboardUsersTable.ts fix: migrations with sql_require_primary_key=1 2024-04-06 11:49:45 +00:00
1561111990357-CreateConfigsTable.ts Add custom logger. Fix a bunch of errors. Optimize imports. 2020-07-22 22:56:21 +03:00
1561117545258-CreateAllowedGuildsTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1561282151982-RenameBackendDashboardStuffToAPI.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1561282552734-RenameAllowedGuildGuildIdToId.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1561282950483-CreateApiUserInfoTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1561283165823-RenameApiUsersToApiPermissions.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1561283405201-DropUserDataFromLoginsAndPermissions.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1561391921385-AddVCAlertTable.ts Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
1562838838927-AddMoreIndicesToVCAlerts.ts Turn on strict TS compilation. Fix up and tweak types accordingly. 2020-11-09 20:03:57 +02:00
1573158035867-AddTypeAndPermissionsToApiPermissions.ts fix: standalone migrations 2024-04-08 21:04:09 +03:00
1573248462469-MoveStarboardsToConfig.ts fix: standalone migrations 2024-04-08 21:04:09 +03:00
1573248794313-CreateStarboardReactionsTable.ts Finished Starboard (Pre Override test) 2019-11-09 00:48:38 +01:00
1575145703039-AddIsExclusiveToReactionRoles.ts Add --exclusive/-e to !reaction_roles 2019-11-30 23:39:32 +02:00
1575199835233-CreateStatsTable.ts Initial work on stats 2019-12-01 15:57:35 +02:00
1575230079526-AddRepeatColumnsToScheduledPosts.ts Add repeat options for scheduled posts 2019-12-01 23:23:34 +02:00
1578445483917-CreateReminderCreatedAtField.ts Run prettier and check tslint on entire codebase 2020-01-12 11:48:31 +02:00
1580038836906-CreateAntiraidLevelsTable.ts Add anti-raid levels to automod. Large refactor of spam detection. Add member_join and member_join_spam triggers. 2020-01-26 19:54:32 +02:00
1580654617890-AddActiveFollowsToLocateUser.ts Made Alerts infinite until timed out, added -active and changed cmd sigm 2020-04-03 16:09:58 +03:00
1590616691907-CreateSupportersTable.ts Store supporters in the database 2020-05-28 01:29:51 +03:00
1591036185142-OptimizeMessageIndices.ts DB optimizations 2020-06-01 22:21:42 +03:00
1591038041635-OptimizeMessageTimestamps.ts DB optimizations 2020-06-01 22:21:42 +03:00
1596994103885-AddCaseNotesForeignKey.ts Add !deletecase 2020-08-09 22:44:46 +03:00
1597015567215-AddLogMessageIdToCases.ts When updating cases, update existing case embed in case log channel if possible 2020-08-10 02:35:47 +03:00
1597109357201-CreateMemberTimezonesTable.ts Add time_and_date plugin. Use it for timezones and date formats around the bot. 2020-08-19 00:19:12 +03:00
1600283341726-EncryptExistingMessages.ts perf: move encryption/decryption to a separate thread 2021-10-09 14:22:51 +03:00
1600285077890-EncryptArchives.ts perf: move encryption/decryption to a separate thread 2021-10-09 14:22:51 +03:00
1608608903570-CreateRestoredRolesColumn.ts Allow certain or all roles to be removed upon mute and readded on unmute (#140) 2021-02-13 20:04:40 +02:00
1608692857722-FixStarboardReactionsIndices.ts Organise all imports, make Mutes depend on Logs 2021-06-06 23:51:32 +02:00
1608753440716-CreateTempBansTable.ts chore: fix lint errors; tweak lint rules 2023-05-08 22:58:51 +03:00
1612010765767-CreateCounterTables.ts Counters v0.9 2021-02-13 17:29:10 +02:00
1617363975046-UpdateCounterTriggers.ts counters: move triggers to counters plugin; architectural tweaks 2021-04-02 16:36:45 +03:00
1622939525343-OrderReactionRoles.ts Properly order reaction roles 2021-06-06 02:41:06 +02:00
1623018101018-CreateButtonRolesTable.ts Make message with default buttons stateful 2021-06-08 04:34:32 +02:00
1628809879962-CreateContextMenuTable.ts Context Menu Actions v1, clean and mute support with full options 2021-08-13 05:01:08 +02:00
1630837386329-AddExpiresAtToApiPermissions.ts Add rudimentary user management to dashboard 2021-09-05 16:42:35 +03:00
1630837718830-CreateApiAuditLogTable.ts Start work on API audit logs 2021-09-05 13:58:08 +03:00
1630840428694-AddTimestampsToAllowedGuilds.ts Update server owner dashboard permissions automatically 2021-09-05 14:34:06 +03:00
1631474131804-AddIndexToIsBot.ts Add index on messages.is_bot 2021-09-12 22:17:22 +03:00
1632582078622-SplitScheduledPostsPostAtIndex.ts Centralize periodic checks for mutes, tempbans, vcalerts, reminders, and scheduled posts 2021-09-25 21:34:07 +03:00
1632582299400-AddIndexToRemindersRemindAt.ts Centralize periodic checks for mutes, tempbans, vcalerts, reminders, and scheduled posts 2021-09-25 21:34:07 +03:00
1634459708599-RemoveTagResponsesForeignKeys.ts feat: add missing migration file 2021-10-17 11:56:00 +03:00
1634563901575-CreatePhishermanCacheTable.ts feat: Phisherman integration 2021-10-31 17:17:31 +02:00
1635596150234-CreatePhishermanKeyCacheTable.ts feat: Phisherman integration 2021-10-31 17:17:31 +02:00
1635779678653-CreateWebhooksTable.ts feat: use webhooks for logs when possible 2021-11-02 19:59:42 +02:00
1650709103864-CreateRoleQueueTable.ts feat: add internal role manager plugin; add role buttons plugin 2022-04-23 16:31:41 +03:00
1650712828384-CreateRoleButtonsTable.ts feat: add internal role manager plugin; add role buttons plugin 2022-04-23 16:31:41 +03:00
1650721020704-RemoveButtonRolesTable.ts chore: remove old button roles implementation 2022-04-23 16:38:24 +03:00
1680354053183-AddTimeoutColumnsToMutes.ts feat: timeout support 2023-04-01 20:05:11 +03:00
1682788165866-CreateMemberCacheTable.ts feat: add member cache; handle all role changes with RoleManagerPlugin; exit gracefully 2023-05-07 17:57:40 +03:00