Migration DOs and DON'Ts

DO

  • When creating a new column for foreign key usage, be sure to check for
    • type: integer
    • length: 8
  • Make sure the down() method contains valid downwards migration code or throws a Doctrine_Migration_IrreversibleMigrationException

 

DON'T

  • Use both DDL and DML in the up() method
    • use up() for DDL and postUp() for DML