guangwu
32a05460a8
code optimization and add ignore file ( #149 )
2023-05-28 15:20:29 +08:00
Rico
5acf810258
Fix two regexes related to SQL create statement parsing ( #140 )
...
* fix: use \s in tableRegexp to match multiline create statements
* fix: improve tableReg regex to correctly match table name
* tests: add test cases for different spacing cases
2023-04-21 22:26:43 +08:00
black-06
07da3b307c
fix parse unique index ( #138 )
2023-04-11 11:22:16 +08:00
Jinzhu
7f4b4982c9
Fix get column default value for null column
2023-01-01 21:55:56 +08:00
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