Skip to content

Commit 6b19083

Browse files
committed
Pick up changes to migration files on every command
1 parent 85e995d commit 6b19083

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

models/BaseMigrationCommand.cfc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ component {
55
property name="JSONService" inject="JSONService";
66

77
function onDIComplete() {
8+
// This is neccessary so changes get picked up right away
9+
pagePoolClear();
10+
811
var cfmigrationsInfo = getCFMigrationsInfo();
912
var appSettings = getApplicationSettings();
1013
var dsources = appSettings.datasources ?: {};
11-
dsources[ 'cfmigrations' ] = cfmigrationsInfo.connectionInfo;
14+
dsources[ "cfmigrations" ] = cfmigrationsInfo.connectionInfo;
1215
application action='update' datasources=dsources;
1316
application action='update' datasource='cfmigrations';
1417
migrationService.setDefaultGrammar( cfmigrationsInfo.defaultGrammar );

0 commit comments

Comments
 (0)