Jinzhu
e1b4c066a8
Fix FullSaveAssociations, close #4874
2021-11-29 11:02:44 +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
Mayank Govilla
d9d5c4dce0
Fix self-referential belongs to constraint ( #4801 )
...
* create tests for self-ref has one migration
* add relation equality check to avoid skipping self-referential schemas
* remove drop table error check
2021-11-08 09:47:29 +08:00
Jason Lee
d3211908a0
Refactor ParseWithSchemaTable method and improve test. ( #4789 )
...
* Refactor ParseWithSchemaTable method and improve test.
* Fix schema.ParseWithSchemaTable method for only use schemaTable in migrator and improve test.
* Rename `schemaTable` to `specialTableName` for clearly argument.
2021-10-25 11:26:44 +08:00
Wendell Sun
a3bd9c3ea2
fix: automigrate error caused by indexes while using dynamic table name
2021-10-19 09:59:57 +08:00
Jinzhu
d4c838c1ce
Upgrade sqlite driver
2021-10-08 17:31:58 +08:00
s-takehana
2202e99cbf
Fix create index with comments in MySQL ( #4521 )
...
* Fix create index with comments in MySQL
* Fix tests
2021-07-18 11:47:44 +08:00
Jinzhu
912360097a
Fix Scopes with Migrator, close #4145
2021-03-11 10:36:14 +08:00
Jinzhu
73d44a4f97
Fix create duplicated constraint, close #4090
2021-02-16 08:52:56 +08:00
yrong1997
2ba612e805
Add field tag to ignore migration ( #4028 )
...
* Add field tag to ignore migration
* Fix null value with space
* refactor migration tag
2021-02-09 16:03:02 +08:00
Jinzhu
916338a9e1
Test migrate constraints, close #3986
2021-01-26 13:39:34 +08:00
Jinzhu
0aef8acc11
Add smart auto migrate tests
2020-10-22 16:36:27 +08:00
Jinzhu
cc6a64adfb
Support smart migrate, close #3078
2020-08-23 18:16:12 +08:00
Jinzhu
90183fadde
Allow advanced table with args
2020-07-19 21:30:24 +08:00
Jinzhu
4201f7bdab
Fix create unique index when creating table, close #3081
2020-06-23 22:14:41 +08:00
Jinzhu
d0764bead1
Test migrate with comment and check created constraints
2020-06-21 13:59:43 +08:00
Jinzhu
d11c424334
Fix typo
2020-06-07 15:26:43 +08:00
Jinzhu
8bb05a5a69
Refactor tests files
2020-06-02 10:50:38 +08:00
Jinzhu
e986371a42
Rename package name
2020-06-02 09:18:01 +08:00
Jinzhu
bc01eb28ad
Fix tests script
2020-06-02 00:24:16 +08:00
Jinzhu
536e4d34b0
Add test for AlterColumn
2020-05-31 11:01:06 +08:00
Jinzhu
d81179557d
Add tests for Tables
2020-05-31 10:24:49 +08:00
Jinzhu
24285060d5
Fix RenameColumn for mssql, DropColumn for sqlite
2020-05-31 09:03:51 +08:00
Jinzhu
7b6b9c4d22
Add tests for Columns
2020-05-31 00:42:52 +08:00
Jinzhu
7c0de9199c
Test Migrate Indexes
2020-05-30 22:43:41 +08:00
Jinzhu
f0a442adff
Refactor tests
2020-05-23 23:50:48 +08:00