Commit Graph

35 Commits

Author SHA1 Message Date
Jinzhu 5d044642d1 Allow DisableForeignKeyConstraintWhenMigrating 2020-06-22 11:04:44 +08:00
Jinzhu d0764bead1 Test migrate with comment and check created constraints 2020-06-21 13:59:43 +08:00
Jinzhu fee1e4aafd Fix create foreign keys for many2many relations 2020-06-21 10:48:23 +08:00
Jinzhu a1e35bdc94 Support merge batch data some having primary values 2020-06-20 16:52:15 +08:00
Jinzhu 4f19e2a7b3 Test ForeignKeyConstraints 2020-06-20 01:20:18 +08:00
Jinzhu 96368eb967 Test embedded struct implements Scan & Value interface 2020-06-18 09:15:23 +08:00
Jinzhu 6b2f37189e Fix few cases with postgres 2020-06-18 08:40:41 +08:00
Jinzhu 1fdc66710e Add table options 2020-06-14 19:13:16 +08:00
Jinzhu a954d772d7 Support customize gorm field type 2020-06-06 10:47:32 +08:00
Jinzhu 1490a062db Refactor codebase and add benchmark test 2020-06-05 23:26:56 +08:00
Jinzhu e986371a42 Rename package name 2020-06-02 09:18:01 +08:00
Jinzhu 5ecbf25b22 Drop table with CASCADE option 2020-06-02 07:56:53 +08:00
Jinzhu 1546f8a4a1 Test CreateWithNoGORMPrimayKey 2020-05-31 12:52:49 +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 e64785573d Add helper methods to check user, pet 2020-05-23 18:05:26 +08:00
Jinzhu 70d60ef72f Fix create join table 2020-04-29 20:37:06 +08:00
Jinzhu d39bdc3513 Fix create index 2020-04-03 07:57:52 +08:00
Jinzhu be537f29ec [migrator] Use full data type when add column 2020-03-30 09:31:02 +08:00
Jinzhu 9e8a4db36b Use *gorm.DB to replace gorm.DB 2020-03-10 08:39:33 +08:00
Jinzhu 3aa1891068 Add sync pool 2020-03-09 15:32:55 +08:00
Jinzhu a67be2a1f1 Refactor reorder migrator models 2020-02-23 08:54:13 +08:00
Jinzhu 1d803dfdd9 Add migrator tests for mssql 2020-02-23 01:02:07 +08:00
Jinzhu d3c63a03cb Handle constraint dependencies smartly 2020-02-23 00:18:12 +08:00
Jinzhu 1895d281bf Add migrator tests for mysql 2020-02-22 23:08:20 +08:00
Jinzhu 6d58b62fd4 Add sqlite migration tests 2020-02-22 20:57:29 +08:00
Jinzhu 215f5e7765 Add Raw, Row, Rows 2020-02-22 19:41:01 +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 0be4817ff9 Finish CreateConstraint 2020-02-22 11:15:51 +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