Skip to content

Enabled use of Evolve CLI Placeholders with ':' in their value - #189

Merged
lecaillon merged 1 commit into
lecaillon:masterfrom
Zarun1:master
Feb 28, 2023
Merged

lecaillon merged 1 commit into
lecaillon:masterfrom
Zarun1:master

Conversation

@Zarun1

@Zarun1 Zarun1 commented Jan 11, 2021

Copy link
Copy Markdown
Contributor

MapPlaceholders function now splits the placeholder string into 2 substrings (key & value). Before, it could split placeholders into 3 or more substrings, and would then ignore the extra substrings. This happened if the placeholder string has more than one ':' character.

This change is useful when using a placeholder to define a file path, for example in a CREATE DATABASE script.

Before this change, a placeholder with the value of "filename:C:\SqlServer\TestDb_data.mdf" will be mistakenly read by Evolve as "filename:C".
After this change, a placeholder with the value of "filename:C:\SqlServer\TestDb_data.mdf" will be correctly read by Evolve as "filename:C:\SqlServer\TestDb_data.mdf".

MapPlaceholders function now splits the placeholder string into 2 substrings (key & value). Before, it could split placeholders into 3 or more substrings and then ignore the extra substrings. This happened if the placeholder has more than one ':' character.

This change is useful when using a placeholder to define a file path, for example in a CREATE DATABASE script.

Before this change, a placeholder with the value of "filename:C:\SqlServer\TestDb_data.mdf" will be mistakenly read by Evolve as "filename:C".
After this change, a placeholder with the value of "filename:C:\SqlServer\TestDb_data.mdf" will be correctly read by Evolve as "filename:C:\SqlServer\TestDb_data.mdf".
@amh9002

amh9002 commented Feb 28, 2023

Copy link
Copy Markdown

Hello,

Is there any chance this will get merged? We're trying to use placeholders to supply CLR assembly file paths in our deploy pipelines and currently cannot do so.

@lecaillon
lecaillon merged commit 059610f into lecaillon:master Feb 28, 2023
@lecaillon

Copy link
Copy Markdown
Owner

Merged. You can download Evolve 3.2.0-alpha2

@amh9002

amh9002 commented Feb 28, 2023

Copy link
Copy Markdown

Great, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants