Snippets
CLI
Remove AUTO_INCREMENT altering with atlas schema diff
atlas schema diff --to "<TARGET_SCHEMA>" --from "<ORIGINAL_SCHEMA>" --format "{{ sql . \" \"}}" | sed 's|AUTO_INCREMENT \+[0-9]\+,\?||g'
- GNU-sed is necessary
- Pattern
AUTO_INCREMENT \d+\,
will replaced with a single space character