aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.sql11
1 files changed, 7 insertions, 4 deletions
diff --git a/init.sql b/init.sql
index d050359..d69d5e9 100644
--- a/init.sql
+++ b/init.sql
@@ -1,8 +1,11 @@
+SET NAMES 'utf8';
+SET CHARACTER SET utf8;
+
CREATE TABLE feed (
id INT NOT NULL AUTO_INCREMENT,
- url VARCHAR(100) NOT NULL,
- web_url VARCHAR(100) NOT NULL DEFAULT "",
- title VARCHAR(100) NOT NULL DEFAULT "",
+ url VARCHAR(255) NOT NULL,
+ web_url VARCHAR(255) NOT NULL DEFAULT "",
+ title VARCHAR(255) NOT NULL DEFAULT "",
last_updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
UNIQUE KEY (url),
PRIMARY KEY (id)
@@ -12,7 +15,7 @@ CREATE TABLE item (
id INT NOT NULL AUTO_INCREMENT,
feed_id INT NOT NULL,
title TEXT,
- url VARCHAR(100) NOT NULL,
+ url VARCHAR(255) NOT NULL,
description TEXT,
publish_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
read_state BOOLEAN DEFAULT FALSE NOT NULL,