diff options
author | Márcio Silva <coadde at hyperbola dot info> | 2017-06-02 15:44:54 -0300 |
---|---|---|
committer | Márcio Silva <coadde at hyperbola dot info> | 2017-06-02 15:44:54 -0300 |
commit | b4830e97ae51396ccaa9ca2acb469aef80094ae8 (patch) | |
tree | c069b1ef6f9189848726121afa8d815e4e56d138 /doc/karma.sql | |
download | hyperbot-b4830e97ae51396ccaa9ca2acb469aef80094ae8.tar.lz hyperbot-b4830e97ae51396ccaa9ca2acb469aef80094ae8.tar.xz hyperbot-b4830e97ae51396ccaa9ca2acb469aef80094ae8.zip |
Add initial files from envbot v0.1-beta1
Diffstat (limited to 'doc/karma.sql')
-rw-r--r-- | doc/karma.sql | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/karma.sql b/doc/karma.sql new file mode 100644 index 0000000..63f16f7 --- /dev/null +++ b/doc/karma.sql @@ -0,0 +1,14 @@ +/* + * This is how to create a factoid database + * Use this file like this: + * sqlite3 -batch data/envbot.db < doc/karma.sql + * + * If you use another table name, change below in + * both places + */ +DROP TABLE IF EXISTS karma; +CREATE TABLE karma ( + target TEXT UNIQUE NOT NULL PRIMARY KEY, + rating INTEGER NOT NULL, + is_locked INTEGER NOT NULL DEFAULT 0 +); |