1package migrator
2
3// Notice
4// code based on parts from from https://github.com/go-xorm/core/blob/3e0fa232ab5c90996406c0cd7ae86ad0e5ecf85f/column.go
5
6type Column struct {
7	Name            string
8	Type            string
9	Length          int
10	Length2         int
11	Nullable        bool
12	IsPrimaryKey    bool
13	IsAutoIncrement bool
14	Default         string
15}
16
17func (col *Column) String(d Dialect) string {
18	return d.ColString(col)
19}
20
21func (col *Column) StringNoPk(d Dialect) string {
22	return d.ColStringNoPk(col)
23}
24