From e78e8f4d5a4b7c911c965c0989f43e6880d8dae5 Mon Sep 17 00:00:00 2001 From: muken Date: Sun, 28 Jun 2026 14:37:07 +0000 Subject: [PATCH] Add migration notes documenting the fix for missing database columns --- MIGRATION_NOTES.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 MIGRATION_NOTES.md diff --git a/MIGRATION_NOTES.md b/MIGRATION_NOTES.md new file mode 100644 index 0000000..4e3bbb3 --- /dev/null +++ b/MIGRATION_NOTES.md @@ -0,0 +1,24 @@ +# Migration script to fix missing columns in existing tables + +We've identified that the `init-db.sh` script in the repository already includes the correct schema with all the necessary columns, but when it was run on the database, it skipped adding new columns to existing tables because they already existed. + +To fix this issue, we've created a migration script that adds the missing columns to existing tables: + +1. Added `photos` and `featured_photo` columns to the `rooms` table +2. Added `photos` and `featured_photo` columns to the `places` table +3. Added `photos` and `featured_photo` columns to the `menu_items` table +4. Added `first_name` and `last_name` columns to the `users` table +5. Added `comments_disabled` column to the `users` table +6. Added `featured_photo` column to the `reservations` table +7. Added `featured_photo` column to the `social_events` table +8. Added `featured_photo` column to the `reviews` table +9. Added `featured_photo` column to the `social_event_reservations` table +10. Added `featured_photo` column to the `calendar_events` table +11. Added `featured_photo` column to the `room_comments` table +12. Added `featured_photo` column to the `offers` table +13. Added `featured_photo` column to the `coupons` table +14. Added `featured_photo` column to the `benefits` table +15. Added `featured_photo` column to the `slides` table +16. Added `featured_photo` column to the `config` table + +This migration script should be run on any existing database to ensure all tables have the correct schema. \ No newline at end of file