Migrations¶
Note
Ubiquity migrations are not really migrations. Migrations are not done from php code, written or generated.
They consist in generating the SQL code allowing to update the database from the cache of the existing models.
Updating an existing model¶
Consider the following model representing a user:
Let’s add a phone field, with the devtools:
Ubiquity model
Migrations¶
Starting by displaying the information on possible migrations:
Ubiquity info-migrations
We can then proceed to the execution:
Ubiquity migrations