From b4830e97ae51396ccaa9ca2acb469aef80094ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Silva?= Date: Fri, 2 Jun 2017 15:44:54 -0300 Subject: Add initial files from envbot v0.1-beta1 --- doc/factoids.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/factoids.sql (limited to 'doc/factoids.sql') diff --git a/doc/factoids.sql b/doc/factoids.sql new file mode 100644 index 0000000..ecf2732 --- /dev/null +++ b/doc/factoids.sql @@ -0,0 +1,15 @@ +/* + * This is how to create a factoid database + * Use this file like this: + * sqlite3 -batch data/envbot.db < doc/factoids.sql + * + * If you use another table name, change below in + * both places + */ +DROP TABLE IF EXISTS factoids; +CREATE TABLE factoids ( + name TEXT UNIQUE NOT NULL PRIMARY KEY, + value TEXT NOT NULL, + who TEXT NOT NULL, + is_locked INTEGER NOT NULL DEFAULT 0 +); -- cgit v1.2.3