Add migrations tests

This commit is contained in:
2024-11-24 00:17:08 +01:00
parent 9d81b1036d
commit 1e7cd0934e
4 changed files with 192 additions and 1 deletions

View File

@@ -49,6 +49,9 @@ var migrations = []Migration{
{
Version: 2,
SQL: `
-- Enable foreign key constraints
PRAGMA foreign_keys = ON;
-- Create sessions table for authentication
CREATE TABLE IF NOT EXISTS sessions (
id TEXT PRIMARY KEY,