feat: database migrations

This commit is contained in:
Per Stark
2025-05-04 21:16:09 +02:00
parent 43fcf6032d
commit 4d1d1eb22c
28 changed files with 880 additions and 218 deletions

View File

@@ -0,0 +1,15 @@
# Ensure 'analytics:current' record exists
CREATE analytics:current CONTENT {
page_loads: 0,
visitors: 0,
};
# Ensure 'system_settings:current' record exists
CREATE system_settings:current CONTENT {
registrations_enabled: true,
require_email_verification: false,
query_model: "gpt-4o-mini",
processing_model: "gpt-4o-mini",
query_system_prompt: "<Your default query prompt here>",
ingestion_system_prompt: "<Your default ingress prompt here>"
};

View File

@@ -0,0 +1 @@
{"schemas":"--- original\n+++ modified\n@@ -147,6 +147,7 @@\n\n DEFINE FIELD OVERWRITE script_name ON script_migration TYPE string;\n DEFINE FIELD OVERWRITE executed_at ON script_migration TYPE datetime VALUE time::now() READONLY;\n+\n # Defines the schema for the 'system_settings' table.\n\n DEFINE TABLE IF NOT EXISTS system_settings SCHEMALESS;\n","events":null}

File diff suppressed because one or more lines are too long