Browse Source

drop UNIQUE indices for (addr, port) when converting the database.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
385b4f1295
  1. 4
      pyweb/mumble/conversionsql/mysql/01-schema-prepare-mumble.sql
  2. 2
      pyweb/mumble/conversionsql/pgsql/01-schema-prepare-mumble.sql
  3. 3
      pyweb/mumble/conversionsql/sqlite/01-schema-mumble.sql

4
pyweb/mumble/conversionsql/mysql/01-schema-prepare-mumble.sql

@ -6,6 +6,10 @@ ALTER TABLE `mumble_mumble`
ADD `display` varchar(200) AFTER `name`;
COMMIT;
BEGIN;
ALTER TABLE mumble_mumble DROP KEY `addr`;
COMMIT;
BEGIN;
CREATE INDEX `mumble_mumble_server_id_idx`
ON `mumble_mumble` (`server_id`);

2
pyweb/mumble/conversionsql/pgsql/01-schema-prepare-mumble.sql

@ -5,3 +5,5 @@ ALTER TABLE "mumble_mumble"
ADD "display" varchar(200);
CREATE INDEX "mumble_mumble_server_id" ON "mumble_mumble" ("server_id");
ALTER TABLE "mumble_mumble" DROP CONSTRAINT "mumble_mumble_addr_key";

3
pyweb/mumble/conversionsql/sqlite/01-schema-mumble.sql

@ -6,6 +6,5 @@ CREATE TABLE "mumble_mumble_new" (
"addr" varchar(200) NOT NULL,
"port" integer NOT NULL,
"display" varchar(200) NOT NULL,
UNIQUE ("server_id", "srvid"),
UNIQUE ("addr", "port")
UNIQUE ("server_id", "srvid")
);
Loading…
Cancel
Save