Admin: Database

Manage the music CMS schema and verify that the current database binding is reachable. These tools are safe to run multiple times and only change schema when needed.

You are not logged in. Add your admin token to enable secure actions.

Admin Token

Enter your admin token to unlock actions like database tests and schema management.

Connection Test

Test the current database binding before running any admin operations. This will attempt a lightweight SELECT 1 on the configured D1 binding.

Schema Management

Initialize the tables for channels, tracks, and voting sessions. This is safe to run multiple times.

SQL Runner

Run SQL statements directly against the configured D1 database. This supports multi-statement batches and transaction wrappers (BEGIN/COMMIT), making it handy for quick inserts and verification queries.

Next Steps