Skip to content

Handle multiline statements in migrations#18478

Merged
AndyButland merged 7 commits intov13/devfrom
v13/bugfix/handle-multi-line-statements-in-migrations
Mar 4, 2025
Merged

Handle multiline statements in migrations#18478
AndyButland merged 7 commits intov13/devfrom
v13/bugfix/handle-multi-line-statements-in-migrations

Conversation

@AndyButland
Copy link
Contributor

Prerequisites

  • I have added steps to test this contribution in the description below

Fixes #18477

Description

This fixes the links issue about not supporting multi-line SQL statements in the migrations. The reporter has done all the work here - I've just applied the fix they have already found and verified it.

See the linked issue for a sample you can use to test. When working in source code I just added it to the most recent migration and then used the following SQL to set the state back one step, and then started Umbraco.

update umbracoKeyValue
set value = '{985AF2BA-69D3-4DBA-95E0-AD3FA7459FA7}'
where [key] = 'Umbraco.Core.Upgrader.State+Umbraco.Core'

@AndyButland AndyButland merged commit 1a205d8 into v13/dev Mar 4, 2025
18 of 19 checks passed
@AndyButland AndyButland deleted the v13/bugfix/handle-multi-line-statements-in-migrations branch March 4, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants