For Sqlite and MySQL, renaming name_title_timestamp to ar_name_title_timestamp so it follows the database convention. For Postgres: - Rename archive_name_title_timestamp to ar_name_title_timestamp - Drop archive_actor (that has only ar_actor) - Add ar_actor_timestamp (that has ar_actor, ar_timestamp) This fixes drifts of PG and MySQL and makes work for abstracting the table easier. Bug: T230428 Bug: T164898 Change-Id: I123a4c47602bdd415f0fe5823f96159dcd0d84b8
2 lines
143 B
SQL
2 lines
143 B
SQL
DROP INDEX name_title_timestamp ON /*_*/archive;
|
|
CREATE INDEX ar_name_title_timestamp ON /*_*/archive (ar_namespace,ar_title,ar_timestamp);
|