fix: fix comment lint error

This commit is contained in:
day-dreams
2020-09-20 16:56:36 +08:00
parent 4582ed0f2a
commit 1f37dad827

View File

@@ -151,7 +151,7 @@ func (m *Migrate) create(ctx context.Context, tx dialect.Tx, tables ...*Table) e
}
default: // !exist
// special case: sqllite driver create foreigh keys during table creating period,
// we need to set foreigh keys as emtpy before it, and get FKS back after Query().
// we need to set foreigh keys emtpy before it, and get FKS back after Query().
bks := t.ForeignKeys
if _, ok := m.sqlDialect.(*SQLite); ok && !m.withForeighKeys {
t.ForeignKeys = nil