ebert-l / avh-booking-system

Booking system based in liabilities
0 stars 0 forks source link

Migration from V1 to V2 Database Problems #9

Open ebert-l opened 1 year ago

ebert-l commented 1 year ago

The V2 Database Structure uses some Columns which do not exist in the V1 Database Structure. Also there is the possibility that Foreign Key Constraints can not be set up because of missing Key Entries in the existing Database.

To solve this problems and ensure a smooth transition between V1 and V2:

From this point on, every new Version with changes on the Database Structure, should have also an "ALTER TABLE" and a "CREATE TABLE IF NOT EXISTS" Statement. The goal is to always allow smooth transition to newer Version and to ensure a shmooth installation on new Systems.