You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,27 @@
2
2
3
3
Github action to create a release on Bytebase.
4
4
5
+
6
+
# Naming scheme
7
+
8
+
The migration files matched by `file-pattern` are assumed to follow a naming scheme.
9
+
It should start with digit version numbers, separated by underscore, and optionally end with
10
+
a change type. Format: `path/to/migrations/<<version>>_xxxx_<<changeType>>.sql`
11
+
This action determines the change type of a file by how its filename ends. The
12
+
default change type is schema change.
13
+
14
+
Examples:
15
+
- 20250101001_add_column.sql
16
+
- 20250101002_fill_default_data_dml.sql
17
+
18
+
19
+
| Ends with | Type |
20
+
| --------- | -------------------- |
21
+
| ddl | schema change |
22
+
| ghost | online schema change |
23
+
| dml | data change |
24
+
25
+
5
26
# Inputs
6
27
7
28
| Input Name | Required | Default Value | Description | Type |
@@ -14,12 +35,6 @@ Github action to create a release on Bytebase.
14
35
| validate-only | No |`false`| Used to check release only. Won't create the release. | Boolean |
15
36
| targets | No | N/A | The database group or databases to check the release against. This must be provided if `check-release` is set to `FAIL_ON_ERROR` or `FAIL_ON_WARNING`. Either a comma separated list of the databases or a database group. Databases example: `instances/mysql1/databases/db1,instances/mysql1/databases/db2`. Database format: instances/{instance}/databases/{database} Database group example: `projects/exa/databaseGroups/mygroup` Database group format: `projects/{project}/databaseGroups/{databaseGroup}`| String |
16
37
17
-
The migration filename **must** start with digits indicating its version. It can optionally end with `dml` or `ghost` to indicate its change type. The default change type is `ddl`.
0 commit comments