Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate/lint: dir-name and dev-url are required for lint/push #114

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions migrate/apply/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ branding:
author: 'Ariga'
inputs:
url:
description: "The URL of the target database. For example: `mysql://root:pass@localhost:3306/dev`."
description: "The URL of the target database. For example: `mysql://root:pass@localhost:3306/dev`."
required: false
dir:
description: |
The URL of the migration directory to apply. For example: `atlas://dir-name` for cloud
The URL of the migration directory to apply. For example: `atlas://dir-name` for cloud
based directories or `file://migrations` for local ones.
required: false
config:
description: |
The URL of the Atlas configuration file. By default, Atlas will look for a file
The URL of the Atlas configuration file. By default, Atlas will look for a file
named `atlas.hcl` in the current directory. For example, `file://config/atlas.hcl`.
Learn more about [Atlas configuration files](https://atlasgo.io/atlas-schema/projects).
required: false
Expand Down
10 changes: 5 additions & 5 deletions migrate/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ author: 'Ariga'
inputs:
dir:
description: |
The URL of the migration directory to lint. For example: `file://migrations`.
The URL of the migration directory to lint. For example: `file://migrations`.
Read more about [Atlas URLs](https://atlasgo.io/concepts/url).
required: false
dir-name:
description: The name (slug) of the project in Atlas Cloud.
required: false
required: true
dev-url:
description: |
The URL of the dev-database to use for analysis. For example: `mysql://root:pass@localhost:3306/dev`.
The URL of the dev-database to use for analysis. For example: `mysql://root:pass@localhost:3306/dev`.
Read more about [dev-databases](https://atlasgo.io/concepts/dev-database).
required: false
required: true
config:
description: |
The path to the Atlas configuration file. By default, Atlas will look for a file
The path to the Atlas configuration file. By default, Atlas will look for a file
named `atlas.hcl` in the current directory. For example, `file://config/atlas.hcl`.
Learn more about [Atlas configuration files](https://atlasgo.io/atlas-schema/projects).
required: false
Expand Down
12 changes: 6 additions & 6 deletions migrate/push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ author: "Ariga"
inputs:
dir:
description: |
The URL of the migration directory to push. For example: `file://migrations`.
The URL of the migration directory to push. For example: `file://migrations`.
Read more about [Atlas URLs](https://atlasgo.io/concepts/url).
required: false
dir-name:
description: The name (slug) of the project in Atlas Cloud.
required: false
required: true
dev-url:
description: |
The URL of the dev-database to use for analysis. For example: `mysql://root:pass@localhost:3306/dev`.
The URL of the dev-database to use for analysis. For example: `mysql://root:pass@localhost:3306/dev`.
Read more about [dev-databases](https://atlasgo.io/concepts/dev-database).
required: false
required: true
tag:
description: |
The tag to apply to the pushed migration directory. By default the
The tag to apply to the pushed migration directory. By default the
current git commit hash is used.
required: false
config:
Expand All @@ -29,7 +29,7 @@ inputs:
Learn more about [Atlas configuration files](https://atlasgo.io/atlas-schema/projects).
required: false
env:
description: The environment to use from the Atlas configuration file. For example, `dev`.
description: The environment to use from the Atlas configuration file. For example, `dev`.
required: false
runs:
using: node20
Expand Down
Loading