Fix CFML hash escaping in brand color migration script
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b75eb8530a
commit
c6a45f7024
1 changed files with 2 additions and 2 deletions
|
|
@ -6,14 +6,14 @@ qBefore = queryExecute("
|
||||||
SELECT BusinessID, BusinessBrandColor
|
SELECT BusinessID, BusinessBrandColor
|
||||||
FROM Businesses
|
FROM Businesses
|
||||||
WHERE BusinessBrandColor LIKE :pattern
|
WHERE BusinessBrandColor LIKE :pattern
|
||||||
", { pattern: { value: "#%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" });
|
", { pattern: { value: "##%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" });
|
||||||
|
|
||||||
if (qBefore.recordCount > 0) {
|
if (qBefore.recordCount > 0) {
|
||||||
queryExecute("
|
queryExecute("
|
||||||
UPDATE Businesses
|
UPDATE Businesses
|
||||||
SET BusinessBrandColor = SUBSTRING(BusinessBrandColor, 2)
|
SET BusinessBrandColor = SUBSTRING(BusinessBrandColor, 2)
|
||||||
WHERE BusinessBrandColor LIKE :pattern
|
WHERE BusinessBrandColor LIKE :pattern
|
||||||
", { pattern: { value: "#%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" });
|
", { pattern: { value: "##%", cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" });
|
||||||
}
|
}
|
||||||
|
|
||||||
qAfter = queryExecute("
|
qAfter = queryExecute("
|
||||||
|
|
|
||||||
Reference in a new issue