Initial Version (Working relay implementing basic functionality)

This commit is contained in:
Danny Morabito 2025-02-07 13:22:49 +01:00
commit aeae39df4d
Signed by: dannym
GPG key ID: 7CC8056A5A04557E
15 changed files with 1272 additions and 0 deletions

12
migrations/0-init.sql Normal file
View file

@ -0,0 +1,12 @@
CREATE TABLE migration_history (
migration_id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))),
migration_version INTEGER NOT NULL,
migration_name TEXT NOT NULL,
executed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
duration_ms INTEGER NOT NULL,
status TEXT NOT NULL CHECK (status IN ('success', 'failed', 'reverted')),
error_message TEXT
);
CREATE INDEX idx_migration_history_name ON migration_history(migration_name);
CREATE INDEX idx_migration_history_executed_at ON migration_history(executed_at);