wiki.techinc.nl/maintenance/postgres/archives/patch-textsearch_bug66650.sql
Amir Sarabadani c33876f834 Migrate text table to abstract schema
For MySQL/Sqlite, drop the table options, they are for MySQL < 5.0 which
was released in 2003 and not any use today.

For Postgres, rename pagecontent table to text, approved as part of the
RFC. Swap order of creating auto-generated tables and manual tables.

Bug: T230428
Bug: T164898
Change-Id: Id7510b80beed7a7297353094a57d5e2d4f12fc64
2021-01-09 16:07:54 +01:00

5 lines
231 B
SQL

UPDATE /*_*/text SET textvector=to_tsvector(old_text)
WHERE textvector IS NULL AND old_id IN
(SELECT max(rev_text_id) FROM revision GROUP BY rev_page);
INSERT INTO /*_*/updatelog(ul_key) VALUES ('patch-textsearch_bug66650.sql');