You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to support customisation of the sequence:
overrideval id = integer("id").autoIncrement(name ="awesome_seq", startWith =1_000_000).entityId()
I have to start my sequences with a higher start value like 1_000_000.
I could use Flyway to solve this easily, but then the DDLs from exposed and flyway will differ. I really dont want to be this dependent on Flyway as I dont see how they will stay relevant for much longer (in the kotlin world)
The text was updated successfully, but these errors were encountered:
Hi @rtc11 , in the event that you are using a database that supports CREATE SEQUENCE operation (like PostgreSQL), you could set this up yourself if you're in a bind. Something like this for example:
Today the sequence will start on 0:
Exposed/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Table.kt
Line 1045 in d592472
Would be nice to support customisation of the sequence:
I have to start my sequences with a higher start value like 1_000_000.
I could use Flyway to solve this easily, but then the DDLs from exposed and flyway will differ. I really dont want to be this dependent on Flyway as I dont see how they will stay relevant for much longer (in the kotlin world)
The text was updated successfully, but these errors were encountered: