INSTANCES

Instances is the mode that we set and then use to identify a migration file.

  • NEW - This will create a new table in the database

  • RENAMETABLE - Will rename a table in the database

  • DROP - This will drop a table in the database

  • CHANGE - This is like altering the table columns

INSTANCE USAGE

Let's take a look how to use this instances.

  • The up is always used in migrating the migration files.

  • The down is used in the rollback of the migration or like a reverse of the up

Last updated