Add warnings about schema changes and remove ad-hoc index creation

- Remove ad-hoc index creation from database.go Initialize method
- Add clear comments to both database.go and schema.sql warning that
  ALL schema changes must be made in schema.sql only
- We do not support migrations, schema changes outside schema.sql are forbidden
This commit is contained in:
2025-07-28 22:09:19 +02:00
parent c35b76deb8
commit b6ad50f23f
3 changed files with 2394 additions and 10 deletions

View File

@@ -1,3 +1,7 @@
-- IMPORTANT: This is the ONLY place where schema changes should be made.
-- We do NOT support migrations. All schema changes MUST be in this file.
-- DO NOT make schema changes anywhere else in the codebase.
CREATE TABLE IF NOT EXISTS asns (
id TEXT PRIMARY KEY,
number INTEGER UNIQUE NOT NULL,