Skip to content

Running migrations "down" randomly fails #19

@Daemach

Description

@Daemach

While testing cfmigrations, I've been running migrations down then back up. I assume that "down" means starting with the last migration run, run the down function then remove the record from the cfmigrations table and keep doing this until none are left....

Down occasionally does not fire for some reason, verified by adding cfdump("Got this far");abort; in my migration file, inside the "down" method.

function onAppInit(event,rc,prc){
		getInstance( "MigrationService@cfmigrations" ).runAllMigrations( "down" );
		getInstance( "MigrationService@cfmigrations" ).runAllMigrations( "up" );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions