You probably want to combine these; otherwise the first line isn't applicable to the second:

    ENVIRONMENT=test php run migrationrun create all=yes