mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-01 10:56:44 +00:00
90639411fa
It is not supported by mysql, but supported by mariadb Use one of the new index to detect, if the schema update was not running yet https://dev.mysql.com/doc/refman/8.0/en/alter-table.html https://dev.mysql.com/doc/refman/8.0/en/create-index.html https://dev.mysql.com/doc/refman/8.0/en/drop-index.html Bug: T314779 Follow-Up: I4bd29a6d0f9515e1a678c2a967799b90ef22f7b9 Change-Id: I820d79285afee854f086ca8c1590948393f496bc
11 lines
587 B
SQL
11 lines
587 B
SQL
-- Drop foreign keys from echo_push_subscription - T306473
|
|
ALTER TABLE /*_*/echo_push_subscription DROP FOREIGN KEY /*_*/echo_push_subscription_ibfk_1;
|
|
ALTER TABLE /*_*/echo_push_subscription DROP FOREIGN KEY /*_*/echo_push_subscription_ibfk_2;
|
|
|
|
-- Rename index to match table prefix
|
|
DROP INDEX /*i*/echo_push_subscription_user_id ON /*_*/echo_push_subscription;
|
|
CREATE INDEX /*i*/eps_user ON /*_*/echo_push_subscription (eps_user);
|
|
|
|
DROP INDEX /*i*/echo_push_subscription_token ON /*_*/echo_push_subscription;
|
|
CREATE INDEX /*i*/eps_token ON /*_*/echo_push_subscription (eps_token(10));
|