We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6292f55 commit 01ffcedCopy full SHA for 01ffced
src/Platforms/CockroachPlatform.php
@@ -57,8 +57,19 @@ protected function initializeDoctrineTypeMappings()
57
$this->doctrineTypeMapping = array_merge($this->doctrineTypeMapping, [
58
'_text' => 'string',
59
'_int8' => 'integer',
60
- 'int8' => 'integer',
61
'int2vector' => 'array',
62
]);
63
}
+
64
+ /**
65
+ * {@inheritDoc}
66
+ */
67
+ public function getIntegerTypeDeclarationSQL(array $column)
68
+ {
69
+ if (! empty($column['autoincrement'])) {
70
+ return 'SERIAL';
71
+ }
72
73
+ return 'INT4';
74
75
0 commit comments