mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-18 23:19:47 +02:00
feat: database migrations
This commit is contained in:
15
common/migrations/20250503_215025_initial_setup.surql
Normal file
15
common/migrations/20250503_215025_initial_setup.surql
Normal 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>"
|
||||
};
|
||||
@@ -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}
|
||||
1
common/migrations/definitions/_initial.json
Normal file
1
common/migrations/definitions/_initial.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user