consolidate password_hash into 001 migration
check / check (push) Failing after 1m27s

Pre-1.0, no installed base — merge 002_add_passwords.sql into
001_initial.sql and remove the separate migration file.
此提交包含在:
clawbot
2026-02-28 07:59:01 -08:00
父節點 7047167dc8
當前提交 69c9550bb2
共有 2 個檔案被更改,包括 2 行新增 和 2 行删除
+2 -1
查看文件
@@ -1,11 +1,12 @@
-- Chat server schema (pre-1.0 consolidated)
PRAGMA foreign_keys = ON;
-- Sessions: IRC-style sessions (no passwords, nick + optional signing key)
-- Sessions: each session is a user identity (nick + optional password + signing key)
CREATE TABLE IF NOT EXISTS sessions (
id INTEGER PRIMARY KEY AUTOINCREMENT,
uuid TEXT NOT NULL UNIQUE,
nick TEXT NOT NULL UNIQUE,
password_hash TEXT NOT NULL DEFAULT '',
signing_key TEXT NOT NULL DEFAULT '',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
last_seen DATETIME DEFAULT CURRENT_TIMESTAMP
-1
查看文件
@@ -1 +0,0 @@
ALTER TABLE sessions ADD COLUMN password_hash TEXT NOT NULL DEFAULT '';