0.14.14: Misc bugfixes in migrations & AsyncCollection keys
This commit is contained in:
@@ -223,7 +223,16 @@ export class ColumnBuilder extends SchemaBuilderBase {
|
||||
* @param type
|
||||
*/
|
||||
public type(type: FieldType): this {
|
||||
if ( this.targetType === type ) {
|
||||
if (
|
||||
this.targetType === type
|
||||
|| (
|
||||
this.existsInSchema
|
||||
&& (
|
||||
(this.targetType === FieldType.integer && type === FieldType.serial)
|
||||
|| (this.targetType === FieldType.bigint && type === FieldType.bigserial)
|
||||
)
|
||||
)
|
||||
) {
|
||||
return this
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user