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

Fix: Tests broken with foreign key in windows env #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmitrykhaymov
Copy link
Contributor

In windows environmet all sqlboiler generetad tests failed - removing \n fixed as described in this resource:
volatiletech/sqlboiler#173
Please check that after commit tests continue to work as expected in unix environment.
Of course tested in windows and now all tests success.

In windows environmet all sqlboiler generetad tests failed - removing \n fixed as described in this resource:
volatiletech/sqlboiler#173
Please check that after commit tests continue to work as expected in unix environment.
Of course tested in windows and now all tests success.
@@ -23,7 +23,7 @@ func MustTx(transactor boil.Transactor, err error) boil.Transactor {
return transactor
}

var rgxPGFkey = regexp.MustCompile(`(?m)^ALTER TABLE ONLY .*\n\s+ADD CONSTRAINT .*? FOREIGN KEY .*?;\n`)
var rgxPGFkey = regexp.MustCompile(`(?m)^ALTER TABLE ONLY .*\n\s+ADD CONSTRAINT .*? FOREIGN KEY .*?;`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole file is automatically generated, so this edit is kind of problematic.
Next time we will import boiler files from MDB (which we do seldom) this will break again.

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

Successfully merging this pull request may close these issues.

None yet

2 participants