-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathaction.yml
More file actions
63 lines (63 loc) · 2.39 KB
/
Copy pathaction.yml
File metadata and controls
63 lines (63 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Generated by go run ./cmd/gen github-manifest; DO NOT EDIT.
name: Migrate Apply
description: Applies a migration directory on a target database
branding:
icon: database
author: 'Ariga'
inputs:
allow-dirty:
description: Allow working on a non-clean database.
default: "false"
amount:
description: The maximum number of migration files to apply. Default is all.
dir:
description: |
The URL of the migration directory to apply. For example: `atlas://dir-name` for cloud
based directories or `file://migrations` for local ones.
dry-run:
description: Print SQL without executing it. Either "true" or "false".
default: "false"
exec-order:
description: |
How Atlas computes and executes pending migration files to the database.
Either "linear", "linear-skip", or "non-linear".
revisions-schema:
description: The name of the schema containing the revisions table.
to-version:
description: The target version to apply migrations to. Mutually exclusive with `amount`.
tx-mode:
description: |
Transaction mode to use. Either "file", "all", or "none".
url:
description: |
The URL of the target database. For example: `mysql://root:pass@localhost:3306/dev`.
working-directory:
description: Atlas working directory. Default is project root
config:
description: |
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).
env:
description: |
The environment to use from the Atlas configuration file. For example, `dev`.
vars:
description: |
A JSON object containing variables to be used in the Atlas configuration file.
For example, `{"var1": "value1", "var2": "value2"}`.
outputs:
applied_count:
description: The number of migrations that were applied.
current:
description: The current version of the database. (before applying migrations)
pending_count:
description: The number of migrations that will be applied.
runs:
description: |
A JSON array of objects containing the current version, target version,
applied count, and pending count for each migration run.
target:
description: The target version of the database.
runs:
using: node24
main: index.js