mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Widen URL field
This commit is contained in:
parent
484510cf8c
commit
794fb506a5
4 changed files with 9 additions and 5 deletions
|
@ -3,6 +3,7 @@ Version 0.8.2 (????-??-??)
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
- Enforce foreign key constraints in MySQL
|
- Enforce foreign key constraints in MySQL
|
||||||
|
- Widen most text fields for MySQL
|
||||||
|
|
||||||
Version 0.8.1 (2019-10-28)
|
Version 0.8.1 (2019-10-28)
|
||||||
==========================
|
==========================
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
-- Copyright 2017 J. King, Dustin Wilson et al.
|
-- Copyright 2017 J. King, Dustin Wilson et al.
|
||||||
-- See LICENSE and AUTHORS files for details
|
-- See LICENSE and AUTHORS files for details
|
||||||
|
|
||||||
-- Please consult the SQLite 3 schemata for commented version
|
|
||||||
|
|
||||||
-- Drop unnecessary indexes
|
-- Drop unnecessary indexes
|
||||||
drop index id on arsse_folders;
|
drop index id on arsse_folders;
|
||||||
drop index id on arsse_feeds;
|
drop index id on arsse_feeds;
|
||||||
|
@ -86,10 +84,12 @@ alter table arsse_sessions add primary key(id(768));
|
||||||
alter table arsse_tokens drop primary key;
|
alter table arsse_tokens drop primary key;
|
||||||
alter table arsse_tokens modify id longtext;
|
alter table arsse_tokens modify id longtext;
|
||||||
alter table arsse_tokens add primary key(id(512), class);
|
alter table arsse_tokens add primary key(id(512), class);
|
||||||
|
drop index url on arsse_feeds;
|
||||||
|
alter table arsse_feeds modify url longtext not null;
|
||||||
|
alter table arsse_feeds add unique index(url(255), username, password);
|
||||||
alter table arsse_feeds modify title longtext;
|
alter table arsse_feeds modify title longtext;
|
||||||
alter table arsse_feeds modify favicon longtext;
|
alter table arsse_feeds modify favicon longtext;
|
||||||
alter table arsse_feeds modify source longtext;
|
alter table arsse_feeds modify source longtext;
|
||||||
alter table arsse_feeds modify etag longtext;
|
|
||||||
alter table arsse_feeds modify err_msg longtext;
|
alter table arsse_feeds modify err_msg longtext;
|
||||||
alter table arsse_articles modify url longtext;
|
alter table arsse_articles modify url longtext;
|
||||||
alter table arsse_articles modify title longtext;
|
alter table arsse_articles modify title longtext;
|
||||||
|
@ -108,7 +108,6 @@ drop index owner on arsse_labels;
|
||||||
alter table arsse_labels modify name longtext not null;
|
alter table arsse_labels modify name longtext not null;
|
||||||
alter table arsse_labels add unique index(owner, name(255));
|
alter table arsse_labels add unique index(owner, name(255));
|
||||||
|
|
||||||
|
|
||||||
-- Fix foreign key constraints
|
-- Fix foreign key constraints
|
||||||
alter table arsse_folders add foreign key(owner) references arsse_users(id) on delete cascade on update cascade;
|
alter table arsse_folders add foreign key(owner) references arsse_users(id) on delete cascade on update cascade;
|
||||||
alter table arsse_folders add foreign key(parent) references arsse_folders(id) on delete cascade;
|
alter table arsse_folders add foreign key(parent) references arsse_folders(id) on delete cascade;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
-- Copyright 2017 J. King, Dustin Wilson et al.
|
-- Copyright 2017 J. King, Dustin Wilson et al.
|
||||||
-- See LICENSE and AUTHORS files for details
|
-- See LICENSE and AUTHORS files for details
|
||||||
|
|
||||||
-- Please consult the SQLite 3 schemata for commented version
|
-- This schema version strictly applies fixes for MySQL,
|
||||||
|
-- hence this file is functionally empty
|
||||||
|
|
||||||
update arsse_meta set value = '6' where "key" = 'schema_version';
|
update arsse_meta set value = '6' where "key" = 'schema_version';
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
-- Copyright 2017 J. King, Dustin Wilson et al.
|
-- Copyright 2017 J. King, Dustin Wilson et al.
|
||||||
-- See LICENSE and AUTHORS files for details
|
-- See LICENSE and AUTHORS files for details
|
||||||
|
|
||||||
|
-- This schema version strictly applies fixes for MySQL,
|
||||||
|
-- hence this file is functionally empty
|
||||||
|
|
||||||
-- set version marker
|
-- set version marker
|
||||||
pragma user_version = 6;
|
pragma user_version = 6;
|
||||||
update arsse_meta set value = '6' where "key" = 'schema_version';
|
update arsse_meta set value = '6' where "key" = 'schema_version';
|
||||||
|
|
Loading…
Reference in a new issue