fix bigint columns for mysql

This commit is contained in:
Martin Rotter 2021-03-15 13:49:53 +01:00
parent 7c42177d21
commit e306fc1182

View File

@ -22,7 +22,7 @@ CREATE TABLE Categories (
parent_id INTEGER NOT NULL CHECK (parent_id >= -1), /* Root categories contain -1 here. */ parent_id INTEGER NOT NULL CHECK (parent_id >= -1), /* Root categories contain -1 here. */
title TEXT NOT NULL CHECK (title != ''), title TEXT NOT NULL CHECK (title != ''),
description TEXT, description TEXT,
date_created INTEGER, date_created BIGINT,
icon BLOB, icon BLOB,
account_id INTEGER NOT NULL, account_id INTEGER NOT NULL,
custom_id TEXT, custom_id TEXT,
@ -34,7 +34,7 @@ CREATE TABLE Feeds (
id $$, id $$,
title TEXT NOT NULL CHECK (title != ''), title TEXT NOT NULL CHECK (title != ''),
description TEXT, description TEXT,
date_created INTEGER, date_created BIGINT,
icon BLOB, icon BLOB,
category INTEGER NOT NULL CHECK (category >= -1), /* Root feeds contain -1 here. */ category INTEGER NOT NULL CHECK (category >= -1), /* Root feeds contain -1 here. */
source TEXT, source TEXT,
@ -58,7 +58,7 @@ CREATE TABLE Messages (
title TEXT NOT NULL CHECK (title != ''), title TEXT NOT NULL CHECK (title != ''),
url TEXT, url TEXT,
author TEXT, author TEXT,
date_created INTEGER NOT NULL CHECK (date_created >= 0), date_created BIGINT NOT NULL CHECK (date_created >= 0),
contents TEXT, contents TEXT,
enclosures TEXT, enclosures TEXT,
score REAL NOT NULL DEFAULT 0.0 CHECK (score >= 0.0 AND score <= 100.0), score REAL NOT NULL DEFAULT 0.0 CHECK (score >= 0.0 AND score <= 100.0),