1.5 KiB
1.5 KiB
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:
- Added
photosandfeatured_photocolumns to theroomstable - Added
photosandfeatured_photocolumns to theplacestable - Added
photosandfeatured_photocolumns to themenu_itemstable - Added
first_nameandlast_namecolumns to theuserstable - Added
comments_disabledcolumn to theuserstable - Added
featured_photocolumn to thereservationstable - Added
featured_photocolumn to thesocial_eventstable - Added
featured_photocolumn to thereviewstable - Added
featured_photocolumn to thesocial_event_reservationstable - Added
featured_photocolumn to thecalendar_eventstable - Added
featured_photocolumn to theroom_commentstable - Added
featured_photocolumn to theofferstable - Added
featured_photocolumn to thecouponstable - Added
featured_photocolumn to thebenefitstable - Added
featured_photocolumn to theslidestable - Added
featured_photocolumn to theconfigtable
This migration script should be run on any existing database to ensure all tables have the correct schema.