From f765ed49ce6aeedf98f519bdad32bc6f3e3f6661 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Wed, 14 Feb 2024 17:24:53 +0100 Subject: [PATCH] BUGFIX: Allow other value types for property migrations Resolves: #22 --- NodeMigration.Schema.json | 6 +++++- examples/Version20140708120530.yaml | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/NodeMigration.Schema.json b/NodeMigration.Schema.json index 1e46ac6..6b06f64 100644 --- a/NodeMigration.Schema.json +++ b/NodeMigration.Schema.json @@ -327,7 +327,11 @@ "newValue": { "description": "New property value to be set.\n\nThe value of the option currentValuePlaceholder (defaults to “{current}”) will be used to include the current property value into the new value.", "x-intellij-html-description": "

New property value to be set.\n\nThe value of the option currentValuePlaceholder (defaults to “{current}”) will be used to include the current property value into the new value.

", - "type": "string" + "type": [ + "string", + "number", + "boolean" + ] }, "search": { "description": "Search string to replace in current property value.", diff --git a/examples/Version20140708120530.yaml b/examples/Version20140708120530.yaml index a774aa6..5cc9ce7 100644 --- a/examples/Version20140708120530.yaml +++ b/examples/Version20140708120530.yaml @@ -18,6 +18,11 @@ up: - type: 'MyCustom' settings: [] + - + type: 'ChangePropertyValue' + settings: + property: 'myBooleanProperty' + newValue: false - filters: -