vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
149 stars 53 forks source link

Identity columns should only be used on PostgreSQL 10 #6

Closed vzsg closed 6 years ago

vzsg commented 6 years ago

On earlier versions, the current implementation will throw a syntax error.

Either fluent-postgresql should detect which PG version it is connected to, and use that information while generating the column type, or the Identity feature should be opt-in.

tanner0101 commented 6 years ago
try services.register(FluentPostgreSQLProvider(enableIdentityColumns: false))