qqxhb
1305f637f8
feat: add method GetIndexes ( #5436 )
...
* feat: add method GetIndexes
* feat: add default impl for Index interface
* feat: fmt
2022-06-17 11:00:57 +08:00
Jinzhu
0af95f509a
Enhance migrator Columntype interface ( #5088 )
...
* Update Migrator ColumnType interface
* Update MigrateColumn Test
* Upgrade test drivers
* Fix typo
2022-02-19 17:02:53 +08:00
dino.ma
5e64ac7de9
feat(migrator,migrator/migrator.go,tests/migrate_test.go) : Get multiple data tables for migrator. ( #4841 )
...
* feat(migrator,migrator/migrator.go,tests/migrate_test.go) : Get multiple data tables for migrator.
* feat(migrator.go and migrator/migrator.go) : remove Table Struct replace with []string
* fix(migrator) : Return all data tables
* Update migrator.go
* fix(migrator/migrator.go):remove var sql
* feat(migrate_test.go/go.mod):update sqlserver,sqlite,postgres,pq version and add getTables test
* fix(migrate_test.go):change GetTables Method Test,use intersection
Co-authored-by: dino.ma <mashengjie03@baidu.com>
2021-11-13 14:03:33 +08:00
Jinzhu
8c92d9694a
Fix to call Scopes with using Migrator
2021-03-19 16:34:51 +08:00
Jinzhu
e85b73e5a5
Fix nested Scopes, close #4196
2021-03-19 13:44:25 +08:00
Jinzhu
912360097a
Fix Scopes with Migrator, close #4145
2021-03-11 10:36:14 +08:00
Jinzhu
26504f5cae
Use NewDB to replace WithConditions for Session
2020-11-17 16:28:37 +08:00
Michelle
635dcc9ad4
add gorm ColumnType interface, remove sql one ( #3647 )
2020-10-21 18:35:33 +08:00
Jinzhu
dbaa6b0ec3
Fix Scan struct with primary key, close #3357
2020-09-02 16:14:26 +08:00
Jinzhu
cc6a64adfb
Support smart migrate, close #3078
2020-08-23 18:16:12 +08:00
Jinzhu
d0764bead1
Test migrate with comment and check created constraints
2020-06-21 13:59:43 +08:00
Jinzhu
aaf0725771
Refactor for performance
2020-06-08 17:21:26 +08:00
Jinzhu
d81179557d
Add tests for Tables
2020-05-31 10:24:49 +08:00
Jinzhu
fab7d96da5
Add DataTypeOf for dialector
2020-02-22 17:53:57 +08:00
Jinzhu
0801cdf164
Almost finish Migrator
2020-02-22 13:11:54 +08:00
Jinzhu
62dcd7896a
Add Migrator
2020-02-20 23:04:03 +08:00
Jinzhu
8eae7e4ab9
Add migrator
2020-01-28 23:01:35 +08:00