all repos — honk @ 379c0cb81fe36915b5b3a54d042d34f24ca7b6b3

my fork of honk

lower case all the sql
Ted Unangst tedu@tedunangst.com
Fri, 19 Apr 2019 10:41:21 -0400
commit

379c0cb81fe36915b5b3a54d042d34f24ca7b6b3

parent

434f07afe46ccf141f52674b895f11036c2093a7

1 files changed, 10 insertions(+), 10 deletions(-)

jump to
M schema.sqlschema.sql

@@ -1,8 +1,8 @@

-CREATE TABLE honks (honkid integer primary key, userid integer, what text, honker text, xid text, rid text, dt text, url text, audience text, noise text); -CREATE TABLE donks (honkid integer, fileid integer); -CREATE TABLE files(fileid integer primary key, xid text, name text, url text, media text, content blob); -CREATE TABLE honkers (honkerid integer primary key, userid integer, name text, xid text, flavor text, pubkey text); +create table honks (honkid integer primary key, userid integer, what text, honker text, xid text, rid text, dt text, url text, audience text, noise text); +create table donks (honkid integer, fileid integer); +create table files(fileid integer primary key, xid text, name text, url text, media text, content blob); +create table honkers (honkerid integer primary key, userid integer, name text, xid text, flavor text, pubkey text); create table doovers(dooverid integer primary key, dt text, tries integer, username text, rcpt text, msg blob); create index idx_honksxid on honks(xid);

@@ -11,11 +11,11 @@ create index idx_honkerxid on honkers(xid);

create index idx_filesxid on files(xid); create index idx_filesurl on files(url); -CREATE TABLE config (key text, value text); +create table config (key text, value text); -CREATE TABLE users (userid integer primary key, username text, hash text, displayname text, about text, pubkey text, seckey text); -CREATE TABLE auth (authid integer primary key, userid integer, hash text); -CREATE INDEX idxusers_username on users(username); -CREATE INDEX idxauth_userid on auth(userid); -CREATE INDEX idxauth_hash on auth(hash); +create table users (userid integer primary key, username text, hash text, displayname text, about text, pubkey text, seckey text); +create table auth (authid integer primary key, userid integer, hash text); +CREATE index idxusers_username on users(username); +CREATE index idxauth_userid on auth(userid); +CREATE index idxauth_hash on auth(hash);