mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-03 16:29:15 +00:00
add workaround for psql 8.3 stricter typechecking on SUBSTRING() (refs #201)
This commit is contained in:
@@ -18,6 +18,7 @@ drop table ttrss_feed_categories;
|
||||
drop table ttrss_users;
|
||||
drop table ttrss_themes;
|
||||
drop table ttrss_sessions;
|
||||
drop function SUBSTRING_FOR_DATE(timestamp, int, int);
|
||||
|
||||
begin;
|
||||
|
||||
@@ -184,7 +185,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
|
||||
|
||||
create table ttrss_version (schema_version int not null);
|
||||
|
||||
insert into ttrss_version values (34);
|
||||
insert into ttrss_version values (35);
|
||||
|
||||
create table ttrss_enclosures (id serial not null primary key,
|
||||
content_url text not null,
|
||||
@@ -317,4 +318,6 @@ create table ttrss_sessions (id varchar(250) unique not null primary key,
|
||||
|
||||
create index ttrss_sessions_expire_index on ttrss_sessions(expire);
|
||||
|
||||
create function SUBSTRING_FOR_DATE(timestamp, int, int) RETURNS text AS 'SELECT SUBSTRING(CAST($1 AS text), $2, $3)' LANGUAGE 'sql';
|
||||
|
||||
commit;
|
||||
|
||||
Reference in New Issue
Block a user