diff --git a/dialect/sql/schema/migrate.go b/dialect/sql/schema/migrate.go index 0e36d8568..b21b85ef7 100644 --- a/dialect/sql/schema/migrate.go +++ b/dialect/sql/schema/migrate.go @@ -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