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

Providing table name for the schema version table cause error #202

Closed
gsrnadeem opened this issue Apr 8, 2021 · 3 comments
Closed

Providing table name for the schema version table cause error #202

gsrnadeem opened this issue Apr 8, 2021 · 3 comments
Assignees
Labels
bug Something isn't working community-feedback
Milestone

Comments

@gsrnadeem
Copy link

Running yuniql run --debug --platform postgresql --transaction-mode version --meta-schema public --meta-table DBVersion second time would cause error as the run is still checking for table __yuniqldbversion

image

@rdagumampan rdagumampan added bug Something isn't working community-feedback labels Apr 8, 2021
@rdagumampan
Copy link
Owner

@gsrnadeem , it seems to be bug and I have no tests that covered this so far.
Thank you for reporting this issue and I hope you manage to find a work around.

You may use the default tracking table name while I work on the patch to fix this issue.

Br, Rodel

@gsrnadeem
Copy link
Author

Thank you @rdagumampan for you reply, I love the work you have done so far, it is a great tool, simple and powerful with many great features, and I'm looking deeply into the tool, so no work around for now, but I'm using the default name.

@rdagumampan rdagumampan added this to the v1.2 milestone May 15, 2021
@rdagumampan rdagumampan self-assigned this May 15, 2021
@rdagumampan
Copy link
Owner

Hi @gsrnadeem, I had more time to dig deeper into your case and I found this is issues is caused by the Pascal casing in your customer meta table name. Pgsql automatimatically fold down to lower case the object names when not enclosed in double qoutes. This means the first run, created dbversion table and not DbVersion. In the next run, yuniql will not be able to find DbVersion so it assumes the table does not exists but its just because its lower cased dbversion. If you used small case in your subsequent run, it will work just fine.

First run

yuniql run --debug --platform postgresql --transaction-mode version --meta-schema public --meta-table DBVersion

Subsequent runs

yuniql run --debug --platform postgresql --transaction-mode version --meta-schema public --meta-table dbversion

@rdagumampan rdagumampan modified the milestones: v1.2, vnext May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community-feedback
Projects
None yet
Development

No branches or pull requests

2 participants