fix: remove undeployed api_tokens migrations (006 + 007)

This commit is contained in:
user 2026-02-16 00:34:02 -08:00
parent f743837d49
commit 8d68a31366
2 changed files with 0 additions and 12 deletions

View File

@ -1,11 +0,0 @@
CREATE TABLE IF NOT EXISTS api_tokens (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
name TEXT NOT NULL DEFAULT '',
token_hash TEXT NOT NULL UNIQUE,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
last_used_at DATETIME
);
CREATE INDEX IF NOT EXISTS idx_api_tokens_token_hash ON api_tokens(token_hash);
CREATE INDEX IF NOT EXISTS idx_api_tokens_user_id ON api_tokens(user_id);

View File

@ -1 +0,0 @@
DROP TABLE IF EXISTS api_tokens;