rssguard/resources/misc/db_init.sql
2013-10-20 11:51:09 +02:00

17 lines
452 B
SQL

DROP TABLE IF EXISTS Information;
-- !
CREATE TABLE IF NOT EXISTS Information (
key TEXT PRIMARY KEY,
value TEXT NOT NULL
);
-- !
INSERT INTO Information VALUES ('schema_version', '0.0.1');
-- !
DROP TABLE IF EXISTS Categories;
-- !
CREATE TABLE IF NOT EXISTS Categories (
id INTEGER PRIMARY KEY,
title TEXT NOT NULL UNIQUE CHECK(title != ''),
description TEXT
icon BLOB
);