We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My environment:
Step1. Create database
CREATE DATABASE IF NOT EXISTS `test01` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
Step2. Initialize table
CREATE TABLE `items` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
Step3. Write schema.sql file.
CREATE TABLE `items` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(1000) COLLATE utf8mb4_bin DEFAULT NULL, -- change varchar 255 to 1000 `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
Step4. Do mysqldef as dry-run, but show Nothing is modified.
Nothing is modified
$ ./mysqldef -uroot --file=schema.sql --dry-run test01 -- Nothing is modified --
I guess that sqldef should show alter table as below.
ALTER TABLE items MODIFY `name` varchar(1000) COLLATE utf8mb4_bin DEFAULT NULL
The text was updated successfully, but these errors were encountered:
a89b25f
Fixed the issue and started its release at v0.6.3.
Sorry, something went wrong.
No branches or pull requests
Step to reproduce
My environment:
Step1. Create database
Step2. Initialize table
Step3. Write schema.sql file.
Step4. Do mysqldef as dry-run, but show
Nothing is modified
.I guess that sqldef should show alter table as below.
The text was updated successfully, but these errors were encountered: