From 3568c22ffebc3c40f86ff5b28d0c9d967e560b0a Mon Sep 17 00:00:00 2001 From: "Giau. Tran Minh" <12751435+giautm@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:15:02 +0700 Subject: [PATCH] schema/apply: update inputs and doc for URL (#241) --- README.md | 3 ++- schema/apply/action.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1560f04a..a50cb0ff 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ Apply migrations to a database. All inputs are optional as they may be specified in the Atlas configuration file. -* `url` - The URL of the target database. For example: `mysql://root:pass@localhost:3306/dev`. +* `url` - The URL of the target database. For example: `mysql://root:pass@localhost:3306/prod`. * `dir` - The URL of the migration directory to apply. For example: `atlas://dir-name` for cloud based directories or `file://migrations` for local ones. * `config` - The URL of the Atlas configuration file. By default, Atlas will look for a file @@ -346,6 +346,7 @@ Apply a declarative migrations to a database. #### Inputs * `to` - The URL(s) of the desired schema state. +* `url` - The URL of the target database. For example: `mysql://root:pass@localhost:3306/prod`. * `plan` - Optional plan file to use for applying the migrations. For example: `atlas:///plans/`. * `dry-run` - Print SQL (and optional analysis) without executing it. Either `true` or `false`. Defaults to `false`. * `auto-approve` - Automatically approve and apply changes. Either `true` or `false`. Defaults to `false`. diff --git a/schema/apply/action.yml b/schema/apply/action.yml index 516e9fdf..6528c75b 100644 --- a/schema/apply/action.yml +++ b/schema/apply/action.yml @@ -30,6 +30,10 @@ inputs: description: | URL(s) of the desired schema state. required: false + url: + description: | + The URL of the target database to apply changes to. For example: `mysql://root:pass@localhost:3306/prod`. + required: false plan: description: The plan to apply. For example, `atlas:///plans/`. required: false