0.14.14: Misc bugfixes in migrations & AsyncCollection keys
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-07 21:08:05 -06:00
parent 9a55623370
commit ac6fd0ef1d
6 changed files with 30 additions and 8 deletions

View File

@@ -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
}