From b73fb696121115d3cff649f4622dda7a5aca9995 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 1 Jan 2021 17:00:20 -0800 Subject: [PATCH] Add comment about foreign keys. --- etiquette/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etiquette/constants.py b/etiquette/constants.py index d0fc1f1..2df876f 100644 --- a/etiquette/constants.py +++ b/etiquette/constants.py @@ -57,6 +57,7 @@ BEGIN; {DB_PRAGMAS} {DB_VERSION_PRAGMA} ---------------------------------------------------------------------------------------------------- +-- users table is defined first because other tables have foreign keys here. CREATE TABLE IF NOT EXISTS users( id TEXT PRIMARY KEY NOT NULL, username TEXT NOT NULL COLLATE NOCASE,