wiki.techinc.nl/maintenance/postgres/archives/patch-searchindex-table.sql
Amir Sarabadani acd5076099 Migrate searchindex to abstract schema
For MySQL/Sqlite:
 - Nothing

For Postgres:
 - Introduce the table. It's not used but it'll be used in the future (T220450)

Bug: T164898
Bug: T230428
Bug: T220450
Change-Id: I9f33132676344f8cd813f7a438b3a6a078fd281c
2021-05-27 15:01:24 +02:00

12 lines
277 B
SQL

CREATE TABLE searchindex (
si_page INT NOT NULL,
si_title VARCHAR(255) DEFAULT '' NOT NULL,
si_text TEXT NOT NULL
);
CREATE UNIQUE INDEX si_page ON searchindex (si_page);
CREATE INDEX si_title ON searchindex (si_title);
CREATE INDEX si_text ON searchindex (si_text);