Tried to solve bug with NULLs and handling date/time of msgs.

This commit is contained in:
Martin Rotter 2014-02-21 21:45:28 +01:00
parent 4113361cf1
commit b4d5c0983b
3 changed files with 6 additions and 6 deletions

View File

@ -65,8 +65,8 @@ CREATE TABLE IF NOT EXISTS Messages (
is_important INTEGER(1) NOT NULL DEFAULT 0 CHECK (is_important >= 0 AND is_important <= 1),
feed INTEGER NOT NULL,
title TEXT NOT NULL CHECK (title != ''),
url TEXT,
author TEXT,
url TEXT NOT NULL,
author TEXT NOT NULL,
date_created BIGINT NOT NULL CHECK (date_created != 0),
contents TEXT,

View File

@ -59,8 +59,8 @@ CREATE TABLE IF NOT EXISTS Messages (
is_important INTEGER(1) NOT NULL CHECK (is_important >= 0 AND is_important <= 1) DEFAULT (0),
feed INTEGER NOT NULL,
title TEXT NOT NULL CHECK (title != ''),
url TEXT,
author TEXT,
url TEXT NOT NULL,
author TEXT NOT NULL,
date_created INTEGER NOT NULL CHECK (date_created != 0),
contents TEXT,

View File

@ -59,8 +59,8 @@ CREATE TABLE IF NOT EXISTS Messages (
is_important INTEGER(1) NOT NULL CHECK (is_important >= 0 AND is_important <= 1) DEFAULT (0),
feed INTEGER NOT NULL,
title TEXT NOT NULL CHECK (title != ''),
url TEXT,
author TEXT,
url TEXT NOT NULL,
author TEXT NOT NULL,
date_created INTEGER NOT NULL CHECK (date_created != 0),
contents TEXT,