-
-
Notifications
You must be signed in to change notification settings - Fork 107
CockroachDB: define adapter-specific sqlTypes in migrator #1972
Copy link
Copy link
Closed
Labels
enhancementphase:2-foundationCockroachDB completion + plugin manifest groundworkCockroachDB completion + plugin manifest groundwork
Milestone
Description
Summary
CockroachDBMigrator has no sqlTypes struct — inherits PostgreSQL's type mappings which may not be optimal.
Details
- CockroachDB prefers
STRINGoverVARCHAR(both work butSTRINGis native) INTpreferred overINTEGERBOOLpreferred overBOOLEAN- Every other adapter defines its own
sqlTypes(PostgreSQL: 12, MySQL: 19, Oracle: 22)
Expected
variables.sqlTypes['boolean'] = {name = 'BOOL'};
variables.sqlTypes['integer'] = {name = 'INT'};
variables.sqlTypes['string'] = {name = 'STRING', limit = 255};
variables.sqlTypes['text'] = {name = 'STRING'};
// etc.Files
vendor/wheels/databaseAdapters/CockroachDB/CockroachDBMigrator.cfc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementphase:2-foundationCockroachDB completion + plugin manifest groundworkCockroachDB completion + plugin manifest groundwork