Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit ea0399f

Browse files
bpamiriclaude
andcommitted
Remove var keyword from page-level scope in migration script
Lucee does not allow var (local scope) outside of functions. Removed var from for-loop iterators and variables in main block. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d55c666 commit ea0399f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

public/miscellaneous/migrate-data.cfm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ try {
354354
writeOutput("#chr(10)#Migrating #arrayLen(tables)# tables...#chr(10)#");
355355
writeOutput(repeatString("-", 60) & chr(10));
356356
357-
for (var tblName in tables) {
357+
for (tblName in tables) {
358358
writeOutput(" #tblName# ... ");
359359
cfflush();
360360
361-
var r = migrateTable(tblName);
361+
r = migrateTable(tblName);
362362
363363
if (len(r.error) && !r.skipped) {
364364
writeOutput("ERROR (#r.duration#ms)#chr(10)#");
@@ -376,13 +376,13 @@ for (var tblName in tables) {
376376
377377
// Reset sequences
378378
writeOutput("#chr(10)#Resetting sequences...#chr(10)#");
379-
var seqResults = resetSequences();
380-
for (var line in seqResults) {
379+
seqResults = resetSequences();
380+
for (line in seqResults) {
381381
writeOutput(line & chr(10));
382382
}
383383
384384
// Summary
385-
var elapsed = numberFormat((getTickCount() - startTime) / 1000, "0.0");
385+
elapsed = numberFormat((getTickCount() - startTime) / 1000, "0.0");
386386
writeOutput("#chr(10)#" & repeatString("=", 60) & chr(10));
387387
writeOutput("Done in #elapsed#s | Rows inserted: #totalInserted# | Errors: #totalErrors##chr(10)#");
388388
writeOutput(repeatString("=", 60) & chr(10));

0 commit comments

Comments
 (0)