From 7992ea371c252350c62f9089a937988d4bd65b0e Mon Sep 17 00:00:00 2001 From: nichenqin Date: Sat, 31 Aug 2024 14:43:49 +0800 Subject: [PATCH] fix: fix delete button field --- .../src/underlying/underlying-table-spec.visitor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/persistence/src/underlying/underlying-table-spec.visitor.ts b/packages/persistence/src/underlying/underlying-table-spec.visitor.ts index 9685d34ff..edb700649 100644 --- a/packages/persistence/src/underlying/underlying-table-spec.visitor.ts +++ b/packages/persistence/src/underlying/underlying-table-spec.visitor.ts @@ -252,6 +252,10 @@ export class UnderlyingTableSpecVisitor implements ITableSpecVisitor { return } + if (schema.field.type === "button") { + return + } + if (schema.field.type !== "rollup") { const query = this.tb.dropColumn(schema.field.id.value).compile() this.addSql(query)