{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6c6af152-5206-45ae-8b73-12c9b38b305f",
    "slug": "postgres-migrator",
    "name": "Postgres Migrator",
    "description": "PostgreSQL database migrator using native pg_dump/pg_restore",
    "url": "https://railway.com/deploy/postgres-migrator",
    "upstream": {
      "repo_url": "https://github.com/crisog/postgres-migrator"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres-migrator",
      "source": {
        "repo": "https://github.com/crisog/postgres-migrator"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "NO_ACL",
      "service": "postgres-migrator",
      "description": "When `true`, skips restoration of access privileges (ACLs), such as GRANT/REVOKE commands for permissions on objects.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NO_OWNER",
      "service": "postgres-migrator",
      "description": "When `true`, skips restoration of object ownership (e.g., who owns tables/schemas). This omits ALTER OWNER commands in the dump file",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATA_ONLY",
      "service": "postgres-migrator",
      "description": "When true, restores only data without schema. Use when the target database already has the schema in place",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PG_VERSION",
      "service": "postgres-migrator",
      "description": "PostgreSQL major version for client tools (15, 16, or 17). Must match your database version.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PARALLEL_JOBS",
      "service": "postgres-migrator",
      "description": "Number of parallel jobs for restore",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "VALIDATE_AFTER",
      "service": "postgres-migrator",
      "description": "Run validation on all tables after migration completes (set to `false` to skip)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EXCLUDE_SCHEMAS",
      "service": "postgres-migrator",
      "description": "Comma-separated list of schemas to exclude from the dump (e.g., pscale_extensions when migrating from PlanetScale)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SKIP_VERSION_CHECK",
      "service": "postgres-migrator",
      "description": "When true, skips the PostgreSQL major version compatibility check between source and target databases, allowing migration    across different versions (e.g., PG 16 to PG 17)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SOURCE_DATABASE_URL",
      "service": "postgres-migrator",
      "description": "Source database connection string",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TARGET_DATABASE_URL",
      "service": "postgres-migrator",
      "description": "Target database connection string",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgres-migrator"
      }
    },
    "cli": "railway deploy --template postgres-migrator",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6c6af152-5206-45ae-8b73-12c9b38b305f",
            "serializedConfig": {
              "services": {
                "daeb043c-bd6d-4d23-9456-61dcf47c8e8e": {
                  "name": "postgres-migrator",
                  "source": {
                    "repo": "crisog/postgres-migrator",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "NO_ACL": {
                      "description": "When `true`, skips restoration of access privileges (ACLs), such as GRANT/REVOKE commands for permissions on objects.",
                      "defaultValue": "false"
                    },
                    "NO_OWNER": {
                      "description": "When `true`, skips restoration of object ownership (e.g., who owns tables/schemas). This omits ALTER OWNER commands in the dump file",
                      "defaultValue": "false"
                    },
                    "DATA_ONLY": {
                      "isOptional": false,
                      "description": "When true, restores only data without schema. Use when the target database already has the schema in place",
                      "defaultValue": "false"
                    },
                    "PG_VERSION": {
                      "isOptional": false,
                      "description": "PostgreSQL major version for client tools (15, 16, or 17). Must match your database version.",
                      "defaultValue": "{{PG_VERSION}}"
                    },
                    "PARALLEL_JOBS": {
                      "description": "Number of parallel jobs for restore",
                      "defaultValue": "4"
                    },
                    "VALIDATE_AFTER": {
                      "isOptional": false,
                      "description": "Run validation on all tables after migration completes (set to `false` to skip)",
                      "defaultValue": "true"
                    },
                    "EXCLUDE_SCHEMAS": {
                      "isOptional": false,
                      "description": "Comma-separated list of schemas to exclude from the dump (e.g., pscale_extensions when migrating from PlanetScale)",
                      "defaultValue": "{{EXCLUDE_SCHEMAS}}"
                    },
                    "SKIP_VERSION_CHECK": {
                      "isOptional": false,
                      "description": "When true, skips the PostgreSQL major version compatibility check between source and target databases, allowing migration    across different versions (e.g., PG 16 to PG 17)",
                      "defaultValue": "false"
                    },
                    "SOURCE_DATABASE_URL": {
                      "description": "Source database connection string",
                      "defaultValue": "{{SOURCE_DATABASE_URL}}"
                    },
                    "TARGET_DATABASE_URL": {
                      "description": "Target database connection string",
                      "defaultValue": "{{TARGET_DATABASE_URL}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-12T04:14:32.537Z",
  "generator_version": "0.1.0"
}
