hi-server/initialize/migrate/database/02118_traffic_log_idx.up.sql
EUForest 9ad602aabe fix(migration): remove IF NOT EXISTS for MySQL compatibility
Remove IF NOT EXISTS clause from CREATE INDEX statement to ensure
compatibility with older MySQL versions. Migration framework ensures
each migration runs only once, making the clause unnecessary.
2026-02-10 00:45:17 +08:00

3 lines
56 B
SQL

CREATE INDEX idx_timestamp ON traffic_log (timestamp);