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

match struct and ParseMigrationFileName func #396

Merged
merged 7 commits into from
Jun 25, 2019

Conversation

pjdufour-truss
Copy link
Contributor

@pjdufour-truss pjdufour-truss commented Jun 11, 2019

This PR externalizes logic within the walk function in file_migrator.go and migration_box.go into a new function ParseMigrationFilename and returned struct Match. Additionally, as file_migrator didn't use normalizeSynonyms, this adds the database type normalization to file_migrator.

By externalizing this functionality, developers can more easily extend filename parsing logic and maintain it over time.

stanislas-m and others added 3 commits May 5, 2019 14:39
* Back to development

* Add Timestamps() macro when generating fizz migrations (gobuffalo#365)

* Azure pipelines (gobuffalo#367)

* WIP Azure pipelines

* Fix typo

* Fix soda install script

* Fix binary name

* Fix tsoda call

* Build soda without modules

* Use Bash to install soda

* Fix pipeline

* Fix soda build

* Remove go module builds

* Fix soda install

* Install soda with go install

* Fix config parse test

* Do not create Docker default DBs

* Remove Travis

* Update badge in Readme

* Remove legacy Anko format fixer (gobuffalo#366)

It can still be called using soda fix command.

* removes errors.WithStack as its noisy and makes it harder to understand (gobuffalo#372)

* removes errors.WithStack as its noisy and makes it harder to understand

* fix packr file

* Add a fix for old fizz without Timestamps() (gobuffalo#373)

* WIP fix old auto-timestamp

* Use plush AST to rewrite fizz files

* Fix case when files are already using t.Timestamps()

* Fix Windows line breaks issue

* Add a mention in godocs about the behavior on slices for executors (gobuffalo#375)

Fixes gobuffalo#363.

* Fix "has_one" pointer association (gobuffalo#378)

* hasOneAssociation did not work with pointers

* Bump version

* Fix IdlePool option (gobuffalo#380)

The zero value was not the same as in the stdlib and could cause
perfs issues. This will now not call SetMaxIdleConns when IdlePool
is set to the zero value.

Fixes gobuffalo#376
@pjdufour-truss
Copy link
Contributor Author

Sorry, hard for me to see why this is failing.

match_test.go Show resolved Hide resolved
@stanislas-m stanislas-m self-requested a review June 25, 2019 10:02
@stanislas-m stanislas-m changed the base branch from master to development June 25, 2019 12:32
@stanislas-m stanislas-m merged commit 4326f96 into gobuffalo:development Jun 25, 2019
@stanislas-m
Copy link
Member

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

Successfully merging this pull request may close these issues.

2 participants