Skip to content
New issue

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

Always applied same DDL with decimal default value #85

Closed
mkanenobu opened this issue Dec 9, 2020 · 2 comments
Closed

Always applied same DDL with decimal default value #85

mkanenobu opened this issue Dec 9, 2020 · 2 comments

Comments

@mkanenobu
Copy link

mkanenobu commented Dec 9, 2020

Problem

As a title

on mysqldef: v0.8.4 linux amd64 (maybe latest)

Expected

Not apply any changes

Initial schema

CREATE TABLE `some_table` (
  `some_value` decimal(5, 2) DEFAULT 0.0
);

Input DDLs

Same as initial schema

CREATE TABLE `some_table` (
  `some_value` decimal(5, 2) DEFAULT 0.0
);

Output DDLs

ALTER TABLE some_table CHANGE COLUMN some_value some_value decimal(5, 2) DEFAULT 0.000000;
@k0kubun
Copy link
Collaborator

k0kubun commented Dec 10, 2020

Thanks, I fixed it in v0.8.5.

@mkanenobu
Copy link
Author

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants