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

add multi fields on table #81

Open
timigame opened this issue Jun 22, 2018 · 2 comments
Open

add multi fields on table #81

timigame opened this issue Jun 22, 2018 · 2 comments
Assignees

Comments

@timigame
Copy link

timigame commented Jun 22, 2018

Hi, I test to add multi fields on a table in mysql, but only first field sync to postgresql.

ALTER TABLE t_user_info ADD (
group_id INT(11) UNSIGNED DEFAULT NULL,
contact_phone VARCHAR(20) DEFAULT NULL
);

Only group_id into postgresql.

Could you resolve this issue?

@the4thdoctor the4thdoctor self-assigned this Jun 22, 2018
@the4thdoctor
Copy link
Owner

hi, thanks for the report. I'll have a look asap.

@the4thdoctor
Copy link
Owner

The bug is caused by a not covering regexp for this specific form of the alter.
The same statement written in this way works.
ALTER TABLE t_user_info ADD group_id INT(11) UNSIGNED DEFAULT NULL, ADD contact_phone VARCHAR(20) DEFAULT NULL ;

I suggest to use this syntax as a workaround meanwhile I find a bug fix.
Thanks

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

No branches or pull requests

2 participants