-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Please see the GH release for the release notes enable repeatable and versioned migration types in `ignoreMigrationPatterns` Add datatype to debug log
- Loading branch information
1 parent
b674678
commit 2bb4305
Showing
60 changed files
with
282 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
documentation/Flyway CLI and API/Configuration/Parameters/Flyway/Email.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
pill: email | ||
subtitle: flyway.email | ||
redirect_from: Configuration/email/ | ||
--- | ||
|
||
|
||
## Description | ||
|
||
A Redgate email to be used in conjunction with the [`token`](configuration/parameters/flyway/token) parameter to | ||
configure a personal access token (PAT). Used to authenticate Flyway to use either Teams or Enterprise. | ||
|
||
## Usage | ||
|
||
### Commandline | ||
```bash | ||
./flyway -email="foo.bar@red-gate.com" -token="1234ABCD" | ||
``` | ||
|
||
### TOML | ||
```properties | ||
[flyway] | ||
email = "foo.bar@red-gate.com" | ||
token = "1234ABCD" | ||
``` | ||
|
||
### Environment Variable | ||
```properties | ||
FLYWAY_EMAIL=foo.bar@red-gate.com | ||
FLYWAY_TOKEN=1234ABCD | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
documentation/Flyway CLI and API/Configuration/Parameters/Flyway/Token.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
pill: token | ||
subtitle: flyway.token | ||
redirect_from: Configuration/token/ | ||
--- | ||
|
||
# Token | ||
|
||
## Description | ||
|
||
A personal access token (PAT) to be used in conjunction with the [`email`](configuration/parameters/flyway/email) | ||
configuration parameter. Used to authenticate Flyway to use either Teams or Enterprise. | ||
|
||
## Usage | ||
|
||
### Commandline | ||
```bash | ||
./flyway -email="foo.bar@red-gate.com" -token="1234ABCD" | ||
``` | ||
|
||
### TOML | ||
```properties | ||
[flyway] | ||
email = "foo.bar@red-gate.com" | ||
token = "1234ABCD" | ||
``` | ||
|
||
### Environment Variable | ||
```properties | ||
FLYWAY_EMAIL=foo.bar@red-gate.com | ||
FLYWAY_TOKEN=1234ABCD | ||
``` |
11 changes: 11 additions & 0 deletions
11
documentation/Flyway CLI and API/Learn More/Rebuild the Schema history table.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
subtitle: Rebuild the Schema history table | ||
--- | ||
|
||
## How to rebuild a Schema history table | ||
|
||
You may want to do this if your Schema history table has been accidentally dropped or if you have rebaselined your migrations and the previous deployment information is no longer applicable. | ||
|
||
Steps | ||
1) Run the [Baseline command](commands/baseline) to provision the table | ||
2) Populate the table without re-executing your migrations by running a Migrate command with the [Skip Executing Migrations](Configuration/parameters/flyway/skip-executing-migrations) switch enabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
documentation/Flyway CLI and API/Tutorials/Tutorial - Personal Access Tokens.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
subtitle: 'Tutorial: Personal Access Tokens (PATs)' | ||
--- | ||
# Tutorial: Personal Access Tokens (PATs) | ||
|
||
This brief tutorial will teach you how to authorize Flyway to use Teams or Enterprise Edition using personal access tokens a.k.a. PATs. | ||
|
||
## Introduction | ||
|
||
Flyway can be authorized non-interactively by specifying the `email` and `token` parameters for PATs. | ||
|
||
## Example: Authorizing Flyway with PATs | ||
|
||
Let's assume we have just installed Flyway. Flyway defaults to Community Edition out of the box. | ||
|
||
Let's say we have access to Enterprise Edition and we would like to authorize Flyway to use Enterprise features. | ||
First, we must generate our PAT. We can do this by visiting the [Personal Access Tokens page](https://identityprovider.red-gate.com/personaltokens) | ||
on the Redgate identity provider website and clicking on the "New Token" button. Be sure to save your token in a secure | ||
place because once they are generated, they cannot be viewed in full again. | ||
|
||
We can then specify our Redgate email and PAT using the `email` and `token` configuration parameters on the commandline, | ||
in the TOML configuration file, or the `FLYWAY_EMAIL` and `FLYWAY_TOKEN` environment variables. For this example, | ||
we'll use the TOML configuration file: | ||
|
||
```toml | ||
[flyway] | ||
email = "foo.bar@red-gate.com" | ||
token = "1234ABCD" | ||
``` | ||
|
||
Now, we can use Flyway normally and Flyway will automatically authorize itself to use Enterprise Edition. Let's run | ||
`flyway version` to verify that: | ||
|
||
<pre class="console"> | ||
> flyway version | ||
|
||
Flyway Enterprise Edition {{ site.flywayVersion }} by Redgate | ||
|
||
See release notes here: https://rd.gt/416ObMi | ||
</pre> | ||
|
||
That's all there is to it! Using PATs, we have successfully authorized Flyway to use Enterprise Edition without | ||
needing to run the `auth` command. | ||
|
||
## Summary | ||
|
||
In this brief tutorial we saw how to: | ||
|
||
- Use PATs to authorize Flyway to use an edition higher than Community Edition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ cmd | |
(?i)Commandline | ||
[Cc]onfig | ||
database_name | ||
databaseName | ||
default_build | ||
[Dd]ev | ||
[Dd]atasource | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.