feat: add city avatar upload functionality and enhance city management features

This commit is contained in:
2026-09-17 19:54:09 +03:00
parent d13cc92d82
commit acec6b4fc0
11 changed files with 292 additions and 26 deletions

View File

@@ -0,0 +1,6 @@
-- A city may use a raster coat of arms or another custom image instead of the
-- text/emoji emblem. The file itself is stored under public/uploads/cities.
ALTER TABLE cities ADD COLUMN IF NOT EXISTS avatar_url VARCHAR(255);
CREATE INDEX IF NOT EXISTS idx_cities_avatar ON cities(avatar_url)
WHERE avatar_url IS NOT NULL;