From 8771546d4fb738d9d966750691f07bb3b9ff82b6 Mon Sep 17 00:00:00 2001 From: Reza Date: Sun, 3 Mar 2024 21:38:54 +0100 Subject: [PATCH] wallet charge --- lib/db/schema/ddl/ddl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/db/schema/ddl/ddl.go b/lib/db/schema/ddl/ddl.go index 537b0431..6734b47d 100644 --- a/lib/db/schema/ddl/ddl.go +++ b/lib/db/schema/ddl/ddl.go @@ -430,6 +430,8 @@ func (local Table) GetDiff(remote table.Table) []string { } } if !found { + // todo: drop constraints + queries = append(queries, fmt.Sprintf("-- column %s does not exists on schema", column.Name)) queries = append(queries, "ALTER TABLE "+quote(local.Name)+" DROP COLUMN "+quote(column.Name)+";") }