Fix/2802 support for mysql invisible attribute #3140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request fixes Issue #2802 by supporting the
INVISIBLE
column attribute in MySQL.Main Changes
parseExtra
to support mul multiple attribute values in "extra" column using regexinspect
to support invisible attributemigrate
andsqlspec
to support invisible attributeHow to Test
Create a Docker Compose File
In the root directory of your project, create a
docker-compose.yml
file with the following content:Add the Schema
In the root directory, create a folder named
mysql/init
and add a SQL file (e.g.,init.sql
) with the following content:Compile the Code
Compile your Atlas project to ensure all changes are built.
Run the Inspection Command
Execute the following command to inspect the schema:
atlas schema inspect --url mysql://testuser:testpassword@localhost:3306/atlas_bug_test > schema.atlas