Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-08-02 17:56:57 +0300
committerGitHub <noreply@github.com>2020-08-02 17:56:57 +0300
commitd2d5dc2cff854c864e4ec507ceb77a31963825da (patch)
tree3a4e3cc913bbc3ae88cc01aa1a791d245273890d
parentdbb486e5ab91fcb34eed32940967aa38319b6e90 (diff)
parent1c81b0adb9806e8f5a4aca7fbb91a701cacd1d90 (diff)
Merge pull request #4370: FIX(server): Reorder old table drops based on constraints
This fixes the second case of PostgreSQL migration failure in #4292 Not tested with a players table, and tested only on PostgreSQL though the changes should make the drops work better on any database. Additionally the changes were left minimal to not introduce new issues, rather than reordering the whole section to the most logical order.
-rw-r--r--src/murmur/ServerDB.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/murmur/ServerDB.cpp b/src/murmur/ServerDB.cpp
index ac5be92ee..460db00cb 100644
--- a/src/murmur/ServerDB.cpp
+++ b/src/murmur/ServerDB.cpp
@@ -673,14 +673,14 @@ ServerDB::ServerDB() {
SQLQUERY("DROP TABLE IF EXISTS `%1slog%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1config%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1channel_info%2`");
- SQLQUERY("DROP TABLE IF EXISTS `%1channels%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1user_info%2`");
- SQLQUERY("DROP TABLE IF EXISTS `%1users%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1players%2`");
- SQLQUERY("DROP TABLE IF EXISTS `%1groups%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1group_members%2`");
+ SQLQUERY("DROP TABLE IF EXISTS `%1groups%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1acl%2`");
+ SQLQUERY("DROP TABLE IF EXISTS `%1users%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1channel_links%2`");
+ SQLQUERY("DROP TABLE IF EXISTS `%1channels%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1bans%2`");
SQLQUERY("DROP TABLE IF EXISTS `%1servers%2`");