Files
2026-01-11 02:46:49 +00:00

27 lines
890 B
SQL

-- This migration cannot be rolled back automatically
-- You would need to re-run the image-parser to restore data
DROP INDEX IF EXISTS idx_minimap_tiles_coords;
DROP INDEX IF EXISTS idx_minimap_tiles_zoom_coords;
DROP TABLE IF EXISTS minimap_tiles;
-- Restore old structure (data will be lost)
CREATE TABLE minimap_tiles (
id INTEGER PRIMARY KEY AUTOINCREMENT,
x INTEGER NOT NULL,
y INTEGER NOT NULL,
original_width INTEGER NOT NULL,
original_height INTEGER NOT NULL,
original_file_size INTEGER,
webp_512 BLOB NOT NULL,
webp_256 BLOB NOT NULL,
webp_128 BLOB NOT NULL,
webp_64 BLOB NOT NULL,
webp_512_size INTEGER NOT NULL,
webp_256_size INTEGER NOT NULL,
webp_128_size INTEGER NOT NULL,
webp_64_size INTEGER NOT NULL,
processed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
source_path TEXT NOT NULL,
UNIQUE(x, y)
);