Files
api-golang/internal/database/schema/mysql/migrations/1_bug_reports.sql
Flavio Fois fa1f65baf7
Some checks failed
Build & Publish Docker Image / build-and-push (push) Failing after 33s
add support for SQLite as an alternative database backend
Implement SQLite support using the pure Go `modernc.org/sqlite` driver and update the migration system to handle driver-specific schemas. Users can now choose between MySQL and SQLite by setting the `DB_DRIVER` environment variable.
2026-03-29 17:46:27 +02:00

5 lines
297 B
SQL

ALTER TABLE bug_reports ADD COLUMN hostname VARCHAR(255) NOT NULL DEFAULT '' AFTER hwid;
ALTER TABLE bug_reports ADD COLUMN os_user VARCHAR(255) NOT NULL DEFAULT '' AFTER hostname;
ALTER TABLE bug_reports ADD INDEX idx_hostname (hostname);
ALTER TABLE bug_reports ADD INDEX idx_os_user (os_user);