Files
api-golang/internal/database/schema/migrations/tasks.json
Flavio Fois 3ec7bb5222
Some checks failed
Build & Publish Docker Image / build-and-push (push) Failing after 11s
add Cloudflare R2 storage integration and update bug report handling
2026-05-27 21:35:26 +02:00

31 lines
1.0 KiB
JSON

{
"tasks": [
{
"id": "1_bug_reports",
"sql_file": "1_bug_reports.sql",
"description": "Add hostname, os_user columns and their indexes to bug_reports.",
"conditions": [
{ "type": "column_not_exists", "table": "bug_reports", "column": "hostname" },
{ "type": "column_not_exists", "table": "bug_reports", "column": "os_user" },
{ "type": "index_not_exists", "table": "bug_reports", "index": "idx_hostname" },
{ "type": "index_not_exists", "table": "bug_reports", "index": "idx_os_user" }
]
},
{
"id": "2_users",
"sql_file": "2_users.sql",
"description": "Add enabled column to user table.",
"conditions": [
{ "type": "column_not_exists", "table": "user", "column": "enabled" }
]
}
,{
"id": "3_updates",
"sql_file": "3_updates.sql",
"description": "Create update_releases table for API-managed software updates.",
"conditions": [
{ "type": "table_not_exists", "table": "update_releases" }
]
}
]
}