Commit Graph

12 Commits

Author SHA1 Message Date
Jinzhu
c86933bc77 Fix parse ddl with newline, close #94 2022-10-09 11:03:43 +08:00
Jinzhu
455504f396 Fix index ddl regexp, close #87 2022-10-09 10:53:03 +08:00
zakaria chahboun
2573b11112 ignore generated columns when [recreateTable] (#109)
* ignore generated columns when recreateTable

Co-authored-by: Jinzhu <wosmvp@gmail.com>
2022-10-08 11:09:38 +08:00
Cr
bfea836753 fix(parseDDL): default value valid should be false if not set (#105) 2022-07-06 11:07:42 +08:00
cncal
fd0b69072c bugfix: parseDDL cannot recognize the table name with dash (#104) 2022-07-06 11:03:16 +08:00
Cr
02ecc06a65 fix(parseDDL): columntype differentiate datatype and lengthvalue (#101)
* fix(parseDDL): columntype differentiate datatype and lengthvalue

* test: fix test
2022-06-29 09:47:09 +08:00
Trock
d34fe2a768 fix: parseDDL index out of range when characters take up more than one byte (#91) 2022-04-26 10:31:35 +08:00
duc
0a99da578e fix parseDDL bug with escaped quote (#89) 2022-04-24 12:48:18 +08:00
glebarez
3ad599a24d fix for https://github.com/go-gorm/gorm/issues/5282 (#90) 2022-04-24 12:30:39 +08:00
Jinzhu
ce06e3ba04 Improve Smart AutoMigrate 2022-02-19 21:56:09 +08:00
Jinzhu
1eac63ca6d Update Migrator ColumnType interface 2022-02-18 15:41:04 +08:00
ThetaDev
2a8115147a Implemented adding/removing constraints (#55)
* Add CreateConstraint function

* Refactored to recreateTable function

* fix determining constraint name
2021-10-08 17:29:27 +08:00