mirror of
https://github.com/ent/ent.git
synced 2026-05-01 07:00:57 +03:00
dialect/sql/schema: alter column for postgres
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/117 Reviewed By: alexsn Differential Revision: D18083914 fbshipit-source-id: a5f6993cfe9a260a84c0d4ab868e3e797b3a5776
This commit is contained in:
committed by
Facebook Github Bot
parent
a0c7ee77dc
commit
c414cd9a82
@@ -61,9 +61,10 @@ func (d *SQLite) setRange(ctx context.Context, tx dialect.Tx, name string, value
|
||||
return tx.Exec(ctx, query, args, new(sql.Result))
|
||||
}
|
||||
|
||||
func (*SQLite) cType(c *Column) string { return c.SQLiteType() }
|
||||
func (*SQLite) tBuilder(t *Table) *sql.TableBuilder { return t.SQLite() }
|
||||
func (*SQLite) cBuilder(c *Column) *sql.ColumnBuilder { return c.SQLite() }
|
||||
func (*SQLite) cType(c *Column) string { return c.SQLiteType() }
|
||||
func (*SQLite) tBuilder(t *Table) *sql.TableBuilder { return t.SQLite() }
|
||||
func (*SQLite) addColumn(c *Column) *sql.ColumnBuilder { return c.SQLite() }
|
||||
func (*SQLite) alterColumn(c *Column) []*sql.ColumnBuilder { return []*sql.ColumnBuilder{c.SQLite()} }
|
||||
|
||||
// fkExist returns always tru to disable foreign-keys creation after the table was created.
|
||||
func (d *SQLite) fkExist(context.Context, dialect.Tx, string) (bool, error) { return true, nil }
|
||||
|
||||
Reference in New Issue
Block a user