2018-11-21 16:06:12 +00:00
|
|
|
-- SPDX-License-Identifier: MIT
|
|
|
|
-- Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
-- See LICENSE and AUTHORS files for details
|
|
|
|
|
2018-11-23 17:53:56 +00:00
|
|
|
-- Please consult the SQLite 3 schemata for commented version
|
|
|
|
|
2018-11-21 16:06:12 +00:00
|
|
|
-- create a case-insensitive generic collation sequence
|
2018-11-23 17:53:56 +00:00
|
|
|
-- this collation is Unicode-aware, whereas SQLite's built-in nocase
|
|
|
|
-- collation is ASCII-only
|
2018-11-21 16:06:12 +00:00
|
|
|
create collation nocase(
|
|
|
|
provider = icu,
|
|
|
|
locale = '@kf=false'
|
|
|
|
);
|
|
|
|
|
|
|
|
alter table arsse_users alter column id type text collate nocase;
|
|
|
|
alter table arsse_folders alter column name type text collate nocase;
|
|
|
|
alter table arsse_feeds alter column title type text collate nocase;
|
|
|
|
alter table arsse_subscriptions alter column title type text collate nocase;
|
|
|
|
alter table arsse_articles alter column title type text collate nocase;
|
|
|
|
alter table arsse_articles alter column author type text collate nocase;
|
|
|
|
alter table arsse_categories alter column name type text collate nocase;
|
|
|
|
alter table arsse_labels alter column name type text collate nocase;
|
|
|
|
|
|
|
|
update arsse_meta set value = '3' where key = 'schema_version';
|