Browse Source

rename a few of the sqlite conversion scripts, add MumbleUser table being recreated, drop old tables instead of keeping them.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
fd2047d302
  1. 0
      pyweb/mumble/conversionsql/sqlite/01-schema-mumble.sql
  2. 10
      pyweb/mumble/conversionsql/sqlite/02-schema-mumbleuser.sql
  3. 0
      pyweb/mumble/conversionsql/sqlite/11-data-mumbleserver.sql
  4. 2
      pyweb/mumble/conversionsql/sqlite/12-data-mumble.sql
  5. 9
      pyweb/mumble/conversionsql/sqlite/13-data-mumbleuser.sql
  6. 1
      pyweb/mumble/conversionsql/sqlite/21-remove-old-mumble.sql
  7. 1
      pyweb/mumble/conversionsql/sqlite/21-rename-old-table.sql
  8. 0
      pyweb/mumble/conversionsql/sqlite/22-rename-new-mumble.sql
  9. 1
      pyweb/mumble/conversionsql/sqlite/23-remove-old-mumbleuser.sql
  10. 1
      pyweb/mumble/conversionsql/sqlite/24-rename-new-mumbleuser.sql

0
pyweb/mumble/conversionsql/sqlite/01-schema-mumble-server_id.sql → pyweb/mumble/conversionsql/sqlite/01-schema-mumble.sql

10
pyweb/mumble/conversionsql/sqlite/02-schema-mumbleuser.sql

@ -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")
);

0
pyweb/mumble/conversionsql/sqlite/11-data-mumble_mumbleserver.sql → pyweb/mumble/conversionsql/sqlite/11-data-mumbleserver.sql

2
pyweb/mumble/conversionsql/sqlite/12-data-mumble_mumble.sql → pyweb/mumble/conversionsql/sqlite/12-data-mumble.sql

@ -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";

9
pyweb/mumble/conversionsql/sqlite/13-data-mumbleuser.sql

@ -0,0 +1,9 @@
INSERT INTO "mumble_mumbleuser_new"
SELECT
"id",
"mumbleid",
"name",
"password",
"server_id",
"owner_id"
FROM "mumble_mumbleuser";

1
pyweb/mumble/conversionsql/sqlite/21-remove-old-mumble.sql

@ -0,0 +1 @@
DROP TABLE "mumble_mumble";

1
pyweb/mumble/conversionsql/sqlite/21-rename-old-table.sql

@ -1 +0,0 @@
ALTER TABLE "mumble_mumble" RENAME TO "mumble_mumble_old";

0
pyweb/mumble/conversionsql/sqlite/22-rename-new-table.sql → pyweb/mumble/conversionsql/sqlite/22-rename-new-mumble.sql

1
pyweb/mumble/conversionsql/sqlite/23-remove-old-mumbleuser.sql

@ -0,0 +1 @@
DROP TABLE "mumble_mumbleuser";

1
pyweb/mumble/conversionsql/sqlite/24-rename-new-mumbleuser.sql

@ -0,0 +1 @@
ALTER TABLE "mumble_mumbleuser_new" RENAME TO "mumble_mumbleuser";
Loading…
Cancel
Save