-
-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Labels
Milestone
Description
Summary
CockroachDBMigrator inherits PostgreSQL's addPrimaryKeyOptions() which replaces INTEGER with SERIAL. CockroachDB doesn't support SERIAL — it uses INT DEFAULT unique_rowid() instead.
Details
PostgreSQLMigrator.addPrimaryKeyOptions()doesReplaceNoCase(sql, "INTEGER", "SERIAL")(line 28-29)- CockroachDB will error on
SERIALtype in DDL - Need CockroachDB-specific override:
INT DEFAULT unique_rowid() PRIMARY KEY - Alternative:
INT DEFAULT gen_random_uuid()for UUID-style PKs
Files
vendor/wheels/databaseAdapters/CockroachDB/CockroachDBMigrator.cfc— needsaddPrimaryKeyOptions()overridevendor/wheels/databaseAdapters/PostgreSQL/PostgreSQLMigrator.cfc:26-32— inherited method
Reactions are currently unavailable