From e306fc11825bbfcd1308a57203e9e64693ebc7d8 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 15 Mar 2021 13:49:53 +0100 Subject: [PATCH] fix bigint columns for mysql --- resources/sql/db_init_sqlite.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/sql/db_init_sqlite.sql b/resources/sql/db_init_sqlite.sql index d0be92d2d..98b2a3234 100644 --- a/resources/sql/db_init_sqlite.sql +++ b/resources/sql/db_init_sqlite.sql @@ -22,7 +22,7 @@ CREATE TABLE Categories ( parent_id INTEGER NOT NULL CHECK (parent_id >= -1), /* Root categories contain -1 here. */ title TEXT NOT NULL CHECK (title != ''), description TEXT, - date_created INTEGER, + date_created BIGINT, icon BLOB, account_id INTEGER NOT NULL, custom_id TEXT, @@ -34,7 +34,7 @@ CREATE TABLE Feeds ( id $$, title TEXT NOT NULL CHECK (title != ''), description TEXT, - date_created INTEGER, + date_created BIGINT, icon BLOB, category INTEGER NOT NULL CHECK (category >= -1), /* Root feeds contain -1 here. */ source TEXT, @@ -58,7 +58,7 @@ CREATE TABLE Messages ( title TEXT NOT NULL CHECK (title != ''), url TEXT, author TEXT, - date_created INTEGER NOT NULL CHECK (date_created >= 0), + date_created BIGINT NOT NULL CHECK (date_created >= 0), contents TEXT, enclosures TEXT, score REAL NOT NULL DEFAULT 0.0 CHECK (score >= 0.0 AND score <= 100.0),