phalcon / migrations

Generate or migrate database changes via migrations.
https://docs.phalcon.io/latest/en/db-migrations
BSD 3-Clause "New" or "Revised" License
27 stars 23 forks source link

Change column modification behaviour during table morph #97

Closed Jeckerson closed 3 years ago

Jeckerson commented 4 years ago

During table morphing, if table column was just renamed, it will drop it and add new one, which will cause data loss.

Suggestion: check if column data is the same, but just name is different and just rename it.