Skip to content

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

Open
dmitrykhaymov wants to merge 1 commit into
Bnei-Baruch:masterfrom
dmitrykhaymov:patch-2
Open

Fix: Tests broken with foreign key in windows env#35
dmitrykhaymov wants to merge 1 commit into
Bnei-Baruch:masterfrom
dmitrykhaymov:patch-2

Conversation

@dmitrykhaymov

Copy link
Copy Markdown
Contributor

In windows environmet all sqlboiler generetad tests failed - removing \n fixed as described in this resource:
aarondl/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:
aarondl/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.
}

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
Copy Markdown
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.

2 participants