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.
This commit is contained in:
EUForest 2026-02-10 00:45:17 +08:00
parent bacdf2f301
commit 9ad602aabe

View File

@ -1,2 +1,2 @@
CREATE INDEX IF NOT EXISTS idx_timestamp ON traffic_log (timestamp);
CREATE INDEX idx_timestamp ON traffic_log (timestamp);