!131 fix: 数据迁移bug

* fix: 数据迁移bug
This commit is contained in:
zongyangleo
2025-01-24 11:08:59 +00:00
committed by Coder慌
parent 30ea36a722
commit efb2b7368c
6 changed files with 15 additions and 15 deletions

View File

@@ -7,6 +7,7 @@ import (
)
type DumpHelper struct {
dbi.DefaultDumpHelper
}
func (dh *DumpHelper) BeforeInsert(writer io.Writer, tableName string) {
@@ -16,7 +17,3 @@ func (dh *DumpHelper) BeforeInsert(writer io.Writer, tableName string) {
func (dh *DumpHelper) BeforeInsertSql(quoteSchema string, tableName string) string {
return fmt.Sprintf("set identity_insert %s on;", tableName)
}
func (dh *DumpHelper) AfterInsert(writer io.Writer, tableName string, columns []dbi.Column) {
writer.Write([]byte("COMMIT;\n"))
}