- Creates database_name column in bots table - Creates tenant_id column for multi-tenant support - Adds indexes for both columns - Migration runs automatically on server start
5 lines
191 B
SQL
5 lines
191 B
SQL
DROP INDEX IF EXISTS idx_bots_tenant_id;
|
|
DROP INDEX IF EXISTS idx_bots_database_name;
|
|
|
|
ALTER TABLE bots DROP COLUMN IF EXISTS tenant_id;
|
|
ALTER TABLE bots DROP COLUMN IF EXISTS database_name;
|