@ -0,0 +1,10 @@
CREATE TABLE "mumble_mumbleuser_new" (
"id" integer NOT NULL PRIMARY KEY,
"mumbleid" integer NOT NULL,
"name" varchar(200) NOT NULL,
"password" varchar(200) NOT NULL,
"server_id" integer NOT NULL REFERENCES "mumble_mumble" ("id"),
"owner_id" integer REFERENCES "auth_user" ("id"),
UNIQUE ("server_id", "owner_id"),
UNIQUE ("server_id", "mumbleid")
);
@ -8,4 +8,4 @@ SELECT
"mumble_mumble"."port",
''
FROM "mumble_mumble" INNER JOIN "mumble_mumbleserver"
WHERE "mumble_mumbleserver"."dbus" = "mumble_mumble"."dbus"
WHERE "mumble_mumbleserver"."dbus" = "mumble_mumble"."dbus";
@ -0,0 +1,9 @@
INSERT INTO "mumble_mumbleuser_new"
SELECT
"id",
"mumbleid",
"name",
"password",
"server_id",
"owner_id"
FROM "mumble_mumbleuser";
@ -0,0 +1 @@
DROP TABLE "mumble_mumble";
@ -1 +0,0 @@
ALTER TABLE "mumble_mumble" RENAME TO "mumble_mumble_old";
DROP TABLE "mumble_mumbleuser";
ALTER TABLE "mumble_mumbleuser_new" RENAME TO "mumble_mumbleuser";