From bbcbeb1a19a195998f4728e639d8c26e94467724 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 18:08:17 +0000 Subject: [PATCH] chore: sync plugin.json version to v0.3.8 --- plugin.json | 506 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 371 insertions(+), 135 deletions(-) diff --git a/plugin.json b/plugin.json index 242296f..9c9cb07 100644 --- a/plugin.json +++ b/plugin.json @@ -1,152 +1,388 @@ { - "name": "workflow-plugin-migrations", - "version": "0.3.7", - "description": "Database migration plugin for the workflow engine: golang-migrate + goose + atlas drivers, pre-deploy runner, wfctl migrate CLI, static lint tool", - "author": "GoCodeAlone", - "license": "Apache-2.0", - "type": "external", - "tier": "community", - "minEngineVersion": "0.51.7", - "keywords": ["migrations", "database", "postgres", "golang-migrate", "goose", "atlas"], - "homepage": "https://github.com/GoCodeAlone/workflow-plugin-migrations", - "repository": "https://github.com/GoCodeAlone/workflow-plugin-migrations", - "capabilities": { - "configProvider": false, - "moduleTypes": [ - "database.migrations", - "database.migration_driver" - ], - "stepTypes": [ - "step.migrate_up", - "step.migrate_down", - "step.migrate_status", - "step.migrate_to" - ], - "triggerTypes": [], - "migrationDrivers": ["golang-migrate", "goose"], - "cliCommands": [ - { - "name": "migrate", - "description": "Run and inspect database migrations", - "subcommands": [ - {"name": "up", "description": "Apply all pending migrations"}, - {"name": "down", "description": "Roll back migrations"}, - {"name": "status", "description": "Show migration status"}, - {"name": "goto", "description": "Migrate to a specific version"}, - {"name": "force", "description": "Force-set the recorded migration version"}, - {"name": "repair-dirty", "description": "Repair a known dirty migration metadata state"}, - {"name": "validate-upgrade", "description": "Validate a candidate migration directory against a baseline"}, - {"name": "lint", "description": "Static analysis for migration files"}, - {"name": "test", "description": "Run full-cycle and checkpoint migration tests"}, - {"name": "tenant-ensure", "description": "Ensure a tenant schema exists in the database"} - ], - "flags_passthrough": true - } + "name": "workflow-plugin-migrations", + "version": "0.3.8", + "description": "Database migration plugin for the workflow engine: golang-migrate + goose + atlas drivers, pre-deploy runner, wfctl migrate CLI, static lint tool", + "author": "GoCodeAlone", + "license": "Apache-2.0", + "type": "external", + "tier": "community", + "minEngineVersion": "0.51.7", + "keywords": [ + "migrations", + "database", + "postgres", + "golang-migrate", + "goose", + "atlas" + ], + "homepage": "https://github.com/GoCodeAlone/workflow-plugin-migrations", + "repository": "https://github.com/GoCodeAlone/workflow-plugin-migrations", + "capabilities": { + "configProvider": false, + "moduleTypes": [ + "database.migrations", + "database.migration_driver" + ], + "stepTypes": [ + "step.migrate_up", + "step.migrate_down", + "step.migrate_status", + "step.migrate_to" + ], + "triggerTypes": [], + "migrationDrivers": [ + "golang-migrate", + "goose" + ], + "cliCommands": [ + { + "name": "migrate", + "description": "Run and inspect database migrations", + "subcommands": [ + { + "name": "up", + "description": "Apply all pending migrations" + }, + { + "name": "down", + "description": "Roll back migrations" + }, + { + "name": "status", + "description": "Show migration status" + }, + { + "name": "goto", + "description": "Migrate to a specific version" + }, + { + "name": "force", + "description": "Force-set the recorded migration version" + }, + { + "name": "repair-dirty", + "description": "Repair a known dirty migration metadata state" + }, + { + "name": "validate-upgrade", + "description": "Validate a candidate migration directory against a baseline" + }, + { + "name": "lint", + "description": "Static analysis for migration files" + }, + { + "name": "test", + "description": "Run full-cycle and checkpoint migration tests" + }, + { + "name": "tenant-ensure", + "description": "Ensure a tenant schema exists in the database" + } ], - "buildHooks": [] + "flags_passthrough": true + } + ], + "buildHooks": [] + }, + "downloads": [ + { + "os": "linux", + "arch": "amd64", + "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-linux-amd64.tar.gz" + }, + { + "os": "linux", + "arch": "arm64", + "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-linux-arm64.tar.gz" + }, + { + "os": "darwin", + "arch": "amd64", + "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-darwin-amd64.tar.gz" + }, + { + "os": "darwin", + "arch": "arm64", + "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-darwin-arm64.tar.gz" }, - "downloads": [ + { + "os": "windows", + "arch": "amd64", + "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-windows-amd64.tar.gz" + }, + { + "os": "windows", + "arch": "arm64", + "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-windows-arm64.tar.gz" + } + ], + "stepSchemas": [ + { + "type": "step.migrate_up", + "plugin": "workflow-plugin-migrations", + "description": "Applies all pending database migrations (up direction).", + "configFields": [ + { + "key": "source_dir", + "label": "Source Directory", + "type": "string", + "description": "Directory containing migration files", + "required": true + }, { - "os": "linux", - "arch": "amd64", - "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-linux-amd64.tar.gz" + "key": "driver", + "label": "Driver", + "type": "select", + "description": "Migration driver to use", + "options": [ + "golang-migrate", + "goose" + ], + "defaultValue": "golang-migrate" }, { - "os": "linux", - "arch": "arm64", - "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-linux-arm64.tar.gz" + "key": "dsn_env", + "label": "DSN Env Var", + "type": "string", + "description": "Environment variable name holding the database DSN", + "defaultValue": "DATABASE_URL" }, { - "os": "darwin", - "arch": "amd64", - "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-darwin-amd64.tar.gz" + "key": "dsn", + "label": "DSN", + "type": "string", + "description": "Literal database DSN (overrides dsn_env)", + "sensitive": true }, { - "os": "darwin", - "arch": "arm64", - "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-darwin-arm64.tar.gz" + "key": "timeout", + "label": "Timeout", + "type": "duration", + "description": "Operation timeout (e.g. 5m)", + "defaultValue": "5m" + } + ], + "outputs": [ + { + "key": "applied", + "type": "int", + "description": "Number of migrations applied" }, { - "os": "windows", - "arch": "amd64", - "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-windows-amd64.tar.gz" + "key": "skipped", + "type": "int", + "description": "Number of migrations skipped (already applied)" }, { - "os": "windows", - "arch": "arm64", - "url": "https://github.com/GoCodeAlone/workflow-plugin-migrations/releases/download/v0.3.7/workflow-plugin-migrations-windows-arm64.tar.gz" + "key": "duration_ms", + "type": "int", + "description": "Total execution time in milliseconds" } - ], - "stepSchemas": [ - { - "type": "step.migrate_up", - "plugin": "workflow-plugin-migrations", - "description": "Applies all pending database migrations (up direction).", - "configFields": [ - {"key": "source_dir", "label": "Source Directory", "type": "string", "description": "Directory containing migration files", "required": true}, - {"key": "driver", "label": "Driver", "type": "select", "description": "Migration driver to use", "options": ["golang-migrate", "goose"], "defaultValue": "golang-migrate"}, - {"key": "dsn_env", "label": "DSN Env Var", "type": "string", "description": "Environment variable name holding the database DSN", "defaultValue": "DATABASE_URL"}, - {"key": "dsn", "label": "DSN", "type": "string", "description": "Literal database DSN (overrides dsn_env)", "sensitive": true}, - {"key": "timeout", "label": "Timeout", "type": "duration", "description": "Operation timeout (e.g. 5m)", "defaultValue": "5m"} - ], - "outputs": [ - {"key": "applied", "type": "int", "description": "Number of migrations applied"}, - {"key": "skipped", "type": "int", "description": "Number of migrations skipped (already applied)"}, - {"key": "duration_ms", "type": "int", "description": "Total execution time in milliseconds"} - ] - }, - { - "type": "step.migrate_down", - "plugin": "workflow-plugin-migrations", - "description": "Rolls back N database migrations (down direction).", - "configFields": [ - {"key": "source_dir", "label": "Source Directory", "type": "string", "description": "Directory containing migration files", "required": true}, - {"key": "driver", "label": "Driver", "type": "select", "description": "Migration driver to use", "options": ["golang-migrate", "goose"], "defaultValue": "golang-migrate"}, - {"key": "dsn_env", "label": "DSN Env Var", "type": "string", "description": "Environment variable name holding the database DSN", "defaultValue": "DATABASE_URL"}, - {"key": "dsn", "label": "DSN", "type": "string", "description": "Literal database DSN (overrides dsn_env)", "sensitive": true}, - {"key": "timeout", "label": "Timeout", "type": "duration", "description": "Operation timeout (e.g. 5m)", "defaultValue": "5m"}, - {"key": "steps", "label": "Steps", "type": "number", "description": "Number of migrations to roll back", "defaultValue": 1} - ], - "outputs": [ - {"key": "applied", "type": "int", "description": "Number of migrations rolled back"}, - {"key": "skipped", "type": "int", "description": "Number of migrations skipped"}, - {"key": "duration_ms", "type": "int", "description": "Total execution time in milliseconds"} - ] - }, - { - "type": "step.migrate_status", - "plugin": "workflow-plugin-migrations", - "description": "Returns the current database migration status (current version, pending count, dirty flag).", - "configFields": [ - {"key": "source_dir", "label": "Source Directory", "type": "string", "description": "Directory containing migration files", "required": true}, - {"key": "driver", "label": "Driver", "type": "select", "description": "Migration driver to use", "options": ["golang-migrate", "goose"], "defaultValue": "golang-migrate"}, - {"key": "dsn_env", "label": "DSN Env Var", "type": "string", "description": "Environment variable name holding the database DSN", "defaultValue": "DATABASE_URL"}, - {"key": "dsn", "label": "DSN", "type": "string", "description": "Literal database DSN (overrides dsn_env)", "sensitive": true}, - {"key": "timeout", "label": "Timeout", "type": "duration", "description": "Operation timeout (e.g. 5m)", "defaultValue": "5m"} - ], - "outputs": [ - {"key": "current", "type": "string", "description": "Current applied migration version"}, - {"key": "pending", "type": "int", "description": "Number of pending (unapplied) migrations"}, - {"key": "dirty", "type": "bool", "description": "Whether the database is in a dirty migration state"} - ] - }, - { - "type": "step.migrate_to", - "plugin": "workflow-plugin-migrations", - "description": "Migrates the database to a specific version (up or down as needed).", - "configFields": [ - {"key": "source_dir", "label": "Source Directory", "type": "string", "description": "Directory containing migration files", "required": true}, - {"key": "target", "label": "Target Version", "type": "string", "description": "Target migration version to migrate to", "required": true}, - {"key": "driver", "label": "Driver", "type": "select", "description": "Migration driver to use", "options": ["golang-migrate", "goose"], "defaultValue": "golang-migrate"}, - {"key": "dsn_env", "label": "DSN Env Var", "type": "string", "description": "Environment variable name holding the database DSN", "defaultValue": "DATABASE_URL"}, - {"key": "dsn", "label": "DSN", "type": "string", "description": "Literal database DSN (overrides dsn_env)", "sensitive": true}, - {"key": "timeout", "label": "Timeout", "type": "duration", "description": "Operation timeout (e.g. 5m)", "defaultValue": "5m"} - ], - "outputs": [ - {"key": "applied", "type": "int", "description": "Number of migrations applied or rolled back to reach the target"}, - {"key": "skipped", "type": "int", "description": "Number of migrations skipped"}, - {"key": "duration_ms", "type": "int", "description": "Total execution time in milliseconds"} - ] + ] + }, + { + "type": "step.migrate_down", + "plugin": "workflow-plugin-migrations", + "description": "Rolls back N database migrations (down direction).", + "configFields": [ + { + "key": "source_dir", + "label": "Source Directory", + "type": "string", + "description": "Directory containing migration files", + "required": true + }, + { + "key": "driver", + "label": "Driver", + "type": "select", + "description": "Migration driver to use", + "options": [ + "golang-migrate", + "goose" + ], + "defaultValue": "golang-migrate" + }, + { + "key": "dsn_env", + "label": "DSN Env Var", + "type": "string", + "description": "Environment variable name holding the database DSN", + "defaultValue": "DATABASE_URL" + }, + { + "key": "dsn", + "label": "DSN", + "type": "string", + "description": "Literal database DSN (overrides dsn_env)", + "sensitive": true + }, + { + "key": "timeout", + "label": "Timeout", + "type": "duration", + "description": "Operation timeout (e.g. 5m)", + "defaultValue": "5m" + }, + { + "key": "steps", + "label": "Steps", + "type": "number", + "description": "Number of migrations to roll back", + "defaultValue": 1 + } + ], + "outputs": [ + { + "key": "applied", + "type": "int", + "description": "Number of migrations rolled back" + }, + { + "key": "skipped", + "type": "int", + "description": "Number of migrations skipped" + }, + { + "key": "duration_ms", + "type": "int", + "description": "Total execution time in milliseconds" + } + ] + }, + { + "type": "step.migrate_status", + "plugin": "workflow-plugin-migrations", + "description": "Returns the current database migration status (current version, pending count, dirty flag).", + "configFields": [ + { + "key": "source_dir", + "label": "Source Directory", + "type": "string", + "description": "Directory containing migration files", + "required": true + }, + { + "key": "driver", + "label": "Driver", + "type": "select", + "description": "Migration driver to use", + "options": [ + "golang-migrate", + "goose" + ], + "defaultValue": "golang-migrate" + }, + { + "key": "dsn_env", + "label": "DSN Env Var", + "type": "string", + "description": "Environment variable name holding the database DSN", + "defaultValue": "DATABASE_URL" + }, + { + "key": "dsn", + "label": "DSN", + "type": "string", + "description": "Literal database DSN (overrides dsn_env)", + "sensitive": true + }, + { + "key": "timeout", + "label": "Timeout", + "type": "duration", + "description": "Operation timeout (e.g. 5m)", + "defaultValue": "5m" + } + ], + "outputs": [ + { + "key": "current", + "type": "string", + "description": "Current applied migration version" + }, + { + "key": "pending", + "type": "int", + "description": "Number of pending (unapplied) migrations" + }, + { + "key": "dirty", + "type": "bool", + "description": "Whether the database is in a dirty migration state" + } + ] + }, + { + "type": "step.migrate_to", + "plugin": "workflow-plugin-migrations", + "description": "Migrates the database to a specific version (up or down as needed).", + "configFields": [ + { + "key": "source_dir", + "label": "Source Directory", + "type": "string", + "description": "Directory containing migration files", + "required": true + }, + { + "key": "target", + "label": "Target Version", + "type": "string", + "description": "Target migration version to migrate to", + "required": true + }, + { + "key": "driver", + "label": "Driver", + "type": "select", + "description": "Migration driver to use", + "options": [ + "golang-migrate", + "goose" + ], + "defaultValue": "golang-migrate" + }, + { + "key": "dsn_env", + "label": "DSN Env Var", + "type": "string", + "description": "Environment variable name holding the database DSN", + "defaultValue": "DATABASE_URL" + }, + { + "key": "dsn", + "label": "DSN", + "type": "string", + "description": "Literal database DSN (overrides dsn_env)", + "sensitive": true + }, + { + "key": "timeout", + "label": "Timeout", + "type": "duration", + "description": "Operation timeout (e.g. 5m)", + "defaultValue": "5m" + } + ], + "outputs": [ + { + "key": "applied", + "type": "int", + "description": "Number of migrations applied or rolled back to reach the target" + }, + { + "key": "skipped", + "type": "int", + "description": "Number of migrations skipped" + }, + { + "key": "duration_ms", + "type": "int", + "description": "Total execution time in milliseconds" } - ] + ] + } + ] }