-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schemadiff: using MySQL capabilities to analyze a SchemaDiff and whet…
…her changes are applicable instantly/immediately. (#14878) Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
- Loading branch information
1 parent
0467851
commit 98639a7
Showing
19 changed files
with
637 additions
and
157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package capabilities | ||
|
||
type FlavorCapability int | ||
|
||
const ( | ||
NoneFlavorCapability FlavorCapability = iota // default placeholder | ||
FastDropTableFlavorCapability // supported in MySQL 8.0.23 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-23.html | ||
TransactionalGtidExecutedFlavorCapability // | ||
InstantDDLFlavorCapability // ALGORITHM=INSTANT general support | ||
InstantAddLastColumnFlavorCapability // | ||
InstantAddDropVirtualColumnFlavorCapability // | ||
InstantAddDropColumnFlavorCapability // Adding/dropping column in any position/ordinal. | ||
InstantChangeColumnDefaultFlavorCapability // | ||
InstantExpandEnumCapability // | ||
MySQLJSONFlavorCapability // JSON type supported | ||
MySQLUpgradeInServerFlavorCapability // | ||
DynamicRedoLogCapacityFlavorCapability // supported in MySQL 8.0.30 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-30.html | ||
DisableRedoLogFlavorCapability // supported in MySQL 8.0.21 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-21.html | ||
CheckConstraintsCapability // supported in MySQL 8.0.16 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-16.html | ||
PerformanceSchemaDataLocksTableCapability | ||
) | ||
|
||
type CapableOf func(capability FlavorCapability) (bool, error) |
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
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.