From c3ee4d00fc45cfb22f837785c7050dd655bce469 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 14 Jan 2022 03:43:26 +0300 Subject: [PATCH] Add ability to skip migrations in API --- userdata/schema.json | 6 ++++++ variables-module.nix | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/userdata/schema.json b/userdata/schema.json index 5115459..778f5e0 100644 --- a/userdata/schema.json +++ b/userdata/schema.json @@ -43,6 +43,12 @@ }, "enableSwagger": { "type": "boolean" + }, + "skippedMigrations": { + "type": "array", + "items": { + "type": "string" + } } } }, diff --git a/variables-module.nix b/variables-module.nix index 2c465cc..47acdfb 100644 --- a/variables-module.nix +++ b/variables-module.nix @@ -84,6 +84,13 @@ in ''; type = types.bool; }; + skippedMigrations = mkOption { + default = [ ]; + description = '' + List of migrations that should be skipped + ''; + type = types.listOf types.str; + }; }; ############# # Secrets #