Skip to content

Conversation

@SandorDobi
Copy link
Contributor

The FluentPostgreSQLProvider now automatically checking the server version and if it less than 10 it is disabling the IDENTITY COLUMN generation.

@tanner0101 tanner0101 changed the base branch from master to nio March 7, 2018 21:44
/// dirty workaround for missing pre migration hook
public final class PostgreSQLVersionCheckProvider: Provider {
/// See `Provider.repositoryName`
public static let repositoryName = "fluent-postgresql-versioncheck"
Copy link
Member

Choose a reason for hiding this comment

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

this should be fluent-postgresql (name of the gh repo)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
I didn't know why this used, I thougt some directory identifier.

Copy link
Member

@tanner0101 tanner0101 left a comment

Choose a reason for hiding this comment

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

once repo name is changed, this LGTM. the static nature of this solution may become a problem if someone is using a v10 and v9 server at the same time, but it will not be a huge pain to fix that if we need to. thanks!

@tanner0101 tanner0101 added this to the 1.0.0-rc.2 milestone Mar 7, 2018
@tanner0101 tanner0101 added the enhancement New feature or request label Mar 7, 2018
@tanner0101 tanner0101 self-assigned this Mar 7, 2018
@tanner0101 tanner0101 merged commit 6019b64 into vapor:nio Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants