From 0405c845bd9e89dc14c256e87e3c8359362f639f Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Tue, 25 Feb 2014 16:31:41 -0800 Subject: [PATCH] remove old sql --- sql/drop.sql | 10 ---------- sql/init.sql | 20 -------------------- 2 files changed, 30 deletions(-) delete mode 100644 sql/drop.sql delete mode 100644 sql/init.sql diff --git a/sql/drop.sql b/sql/drop.sql deleted file mode 100644 index b74ab1ba..00000000 --- a/sql/drop.sql +++ /dev/null @@ -1,10 +0,0 @@ -DROP INDEX IF EXISTS index_user_id_channel_id; -DROP TABLE IF EXISTS user_channel; - -DROP INDEX IF EXISTS index_channel_name; -DROP INDEX IF EXISTS index_channel_id; -DROP TABLE IF EXISTS channel; - -DROP INDEX IF EXISTS index_user_nick; -DROP INDEX IF EXISTS index_user_id; -DROP TABLE IF EXISTS user; diff --git a/sql/init.sql b/sql/init.sql deleted file mode 100644 index b73dbffc..00000000 --- a/sql/init.sql +++ /dev/null @@ -1,20 +0,0 @@ -CREATE TABLE user ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - nick TEXT NOT NULL UNIQUE, - hash BLOB NOT NULL -); -CREATE INDEX index_user_id ON user(id); -CREATE INDEX index_user_nick ON user(nick); - -CREATE TABLE channel ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - name TEXT NOT NULL UNIQUE -); -CREATE INDEX index_channel_id ON channel(id); - -CREATE TABLE user_channel ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - user_id INTEGER NOT NULL, - channel_id INTEGER NOT NULL -); -CREATE UNIQUE INDEX index_user_id_channel_id ON user_channel (user_id, channel_id);