Commit Graph

  • 2cb4088456 ignore AddError return error Joe 2022-07-01 14:37:38 +08:00
  • 25fabd9f40 Update expression_ext.go markussilberbauer-dm 2022-06-30 17:16:34 +02:00
  • e075423929 Update expression_ext.go markussilberbauer-dm 2022-06-30 14:08:03 +02:00
  • 1acc3bb3ae Update expression_ext.go markussilberbauer-dm 2022-06-30 13:42:55 +02:00
  • 4b16c15d93
    chore: gofumpt style a631807682 2022-06-30 15:14:19 +08:00
  • d4b7f3ddb8
    fix: association many2many duplicate elem a631807682 2022-06-30 15:04:04 +08:00
  • 235c093bb9
    fix(MigrateColumn):declared different type without length (#5465) Cr 2022-06-29 10:07:42 +08:00
  • 3f5b0bc2f2
    fix(MigrateColumn):declared different type without length a631807682 2022-06-28 15:23:25 +08:00
  • 1cbccf268c add test: postgres: AutoMigrate: unneeded ALTER COLUMN TYPE smallint viatoriche / Maxim Panfilov 2022-06-27 21:06:43 +03:00
  • 3e6ab99043
    fix:serializer contain field panic (#5461) wws 2022-06-25 16:32:47 +08:00
  • 77a0e4e350 fix:serializer contain field panic wuweishuo 2022-06-21 00:08:37 +08:00
  • a7cacbe25e opt logger, add context into writer.Printf davidsheng 2022-06-24 12:12:34 +08:00
  • 93f28bc116 use callback to handle transaction Joe 2022-06-24 10:33:39 +08:00
  • 19a96b5c11
    Update migrator.go wclssdn 2022-06-23 19:25:10 +08:00
  • 7cf0819f93
    Merge pull request #1 from wclssdn/add_autoIncrement_implement wclssdn 2022-06-23 18:29:51 +08:00
  • 6470a9462f
    Update migrator.go wclssdn 2022-06-23 18:29:06 +08:00
  • a70af2a4c0 Fix Select with digits in column name Jinzhu 2022-06-20 15:35:29 +08:00
  • 1305f637f8
    feat: add method GetIndexes (#5436) qqxhb 2022-06-17 11:00:57 +08:00
  • 730d65557f feat: fmt qqxhb 2022-06-16 20:42:17 +08:00
  • d8f1a70c43 feat: add default impl for Index interface qqxhb 2022-06-16 20:27:56 +08:00
  • 076e9777ee feat: add method GetIndexes qqxhb 2022-06-16 19:36:14 +08:00
  • 17b47b1184 feat: Skip source directory for gen addition 熊闯 2022-06-15 21:53:51 +08:00
  • 2c1a3c9078
    Merge 57c10046c0f5b4966db36a699d7283a12d0e00d1 into 8d457146283e0a4197c26a559bedb1938767b78e Joe 2022-06-14 13:49:05 +08:00
  • 8d45714628
    fix: reset null value in slice (#5417) Cr 2022-06-14 13:48:50 +08:00
  • ad2b59c459
    chore(deps): bump gorm.io/driver/sqlite from 1.3.2 to 1.3.4 in /tests dependabot[bot] 2022-06-13 07:13:23 +00:00
  • 8039ba0eb1
    fix: can not set field in-place in join a631807682 2022-06-13 13:32:08 +08:00
  • ebac31ea48
    fix: reset null value in slice a631807682 2022-06-12 18:35:55 +08:00
  • 57c10046c0 display time offset joe 2022-06-10 09:09:43 +08:00
  • d01de7232b
    enhancement: Avoid calling reflect.New() when passing in slice of values to Scan() (#5388) v1.23.6 Bexanderthebex 2022-06-01 11:50:57 +08:00
  • e210e91444
    enhancement: skip new if rows affected = 0 Melbex De Leon 2022-06-01 10:57:17 +08:00
  • f4e9904b02
    chore(deps): bump gorm.io/driver/mysql from 1.3.3 to 1.3.4 in /tests (#5385) dependabot[bot] 2022-06-01 10:26:09 +08:00
  • 5ea1a74937
    fix[test]: correct sql delete statement Melbex De Leon 2022-05-31 13:30:12 +08:00
  • 266d7a4c0f
    chore[test]: make sure database is empty when doing slice tests Melbex De Leon 2022-05-31 09:16:41 +08:00
  • 66d58c3117
    chore[test]: add bench for slice pointer and improve tests Melbex De Leon 2022-05-31 09:10:53 +08:00
  • 751467c1df
    chore[test]: add bench for scan slice Melbex De Leon 2022-05-30 22:53:47 +08:00
  • 153d0b76b2
    chore[test]: Add benchmark for scan Melbex De Leon 2022-05-30 22:46:36 +08:00
  • 90cceca6e7
    fix: reduce allocations when slice of values Melbex De Leon 2022-05-30 22:32:10 +08:00
  • 4fcb7bc7e2
    chore(deps): bump gorm.io/driver/mysql from 1.3.3 to 1.3.4 in /tests dependabot[bot] 2022-05-30 07:10:50 +00:00
  • d199c58b5d
    chore(deps): bump gorm.io/driver/postgres from 1.3.5 to 1.3.7 in /tests dependabot[bot] 2022-05-30 07:10:47 +00:00
  • 93986de8e4
    fix: migrate column default value (#5359) Cr 2022-05-28 23:09:13 +08:00
  • 7c7db3d4a1
    Merge branch 'master' into fix_migrate_default Jinzhu 2022-05-28 22:25:27 +08:00
  • dc1ae394f3
    fixed FirstOrCreate not handled error when table is not exists (#5367) t-inagaki@hum_op 2022-05-28 23:18:43 +09:00
  • 7e13b03bd4
    fix: duplicate column scan (#5369) Cr 2022-05-28 22:18:07 +08:00
  • 0622c0f958
    chore[ci skip]: fix typo a631807682 2022-05-27 16:02:50 +08:00
  • 9da5e4e5db
    chore[ci skip]: gofumpt style a631807682 2022-05-27 15:50:02 +08:00
  • 5163bb9107
    fix: dup filed in inconsistent schema and database a631807682 2022-05-27 15:42:55 +08:00
  • a6b8eb4ba4
    fix: duplicate column scan a631807682 2022-05-24 10:50:34 +08:00
  • 231b98ae7a delete useless part ophum 2022-05-24 11:11:32 +09:00
  • 8edc482525 fixed FirstOrCreate not handled error when table is not exists ophum 2022-05-23 18:38:52 +09:00
  • 4e0d1f5683
    chore(deps): bump github.com/lib/pq from 1.10.5 to 1.10.6 in /tests dependabot[bot] 2022-05-23 07:12:22 +00:00
  • 7466ec5c8d
    chore(deps): bump gorm.io/driver/postgres from 1.3.5 to 1.3.6 in /tests dependabot[bot] 2022-05-23 07:12:18 +00:00
  • 7d1a92d60e
    test: test for skip prepared when auto migrate (#5350) Cr 2022-05-22 16:12:28 +08:00
  • 540fb49bcb
    Fixed #5355 - Named variables don't work when followed by Windows CRLF line endings (#5356) Clark McCauley 2022-05-22 01:16:01 -06:00
  • a412a38a37 Fixed unit test to test both CRLF and CR line endings Clark McCauley 2022-05-21 09:34:52 -06:00
  • e802c7b651
    fix: migrate column default value a631807682 2022-05-21 20:27:33 +08:00
  • 37bce0c209 Fixed #5355. Clark McCauley 2022-05-20 15:37:16 -06:00
  • 58319a8c76
    Merge branch 'master' into test_for_skip_prepared a631807682 2022-05-19 16:18:27 +08:00
  • 1828a2ede4
    test: test for skip prepared when auto migrate a631807682 2022-05-19 16:11:08 +08:00
  • 7496c3a56e
    fix: trx in hooks clone stmt (#5338) Cr 2022-05-17 14:13:41 +08:00
  • 456c9be1b6
    chore: format by gofumpt a631807682 2022-05-17 13:35:32 +08:00
  • f5e77aab2f
    fix: quote index when creating table (#5331) black-06 2022-05-17 10:59:53 +08:00
  • 3826292708 Add test case piyongcai 2022-05-16 10:32:28 +08:00
  • 42dee40a4e in schema/field.go 1.Add UniqueIndex field to Field's struct。 2.Resolve UniqueIndex value from StructField. piyongcai 2022-05-16 10:22:04 +08:00
  • 580de0696c
    Merge 51abb15f12885218161e2bd7ffb9c2b23c63ec0e into 373bcf7aca01ef76c8ba5c3bc1ff191b020afc7b piyongcai 2022-05-16 01:42:22 +00:00
  • 51abb15f12 reset finisher_api.go,remove ExecRaw method piyongcai 2022-05-16 09:42:14 +08:00
  • 286e4ea884 migrator.go -> MigrateColumn. // check unique, if column has "uniqueIndex" tag, it's unique = true. piyongcai 2022-05-16 08:57:10 +08:00
  • 774fd1d5c2
    fix: trx in hooks a631807682 2022-05-13 20:22:41 +08:00
  • 2c13ea008e 1.Add UniqueIndex field to Field's struct。 2.Resolve UniqueIndex value from StructField. piyongcai 2022-05-13 17:35:11 +08:00
  • 4727b536ca fix: quote index when creating table 小黑 2022-05-12 12:47:26 +08:00
  • e0030749b6
    Merge branch 'go-gorm:master' into master piyongcai 2022-05-09 16:15:34 +08:00
  • 373bcf7aca
    fix: many2many auto migrate (#5322) Cr 2022-05-09 10:07:18 +08:00
  • ce8318927d
    fix: donot alter column if field default value in db or schema both null a631807682 2022-05-08 18:14:31 +08:00
  • 23f194ad59
    test: test mysql only a631807682 2022-05-08 17:53:27 +08:00
  • c42089d0b0
    fix: tag defalut NULL and default not set should be same a631807682 2022-05-08 17:35:46 +08:00
  • 722c301777
    fix: uuid ossp a631807682 2022-05-06 17:53:28 +08:00
  • 20b8cea93f
    fix: many2many auto migrate a631807682 2022-05-06 17:41:47 +08:00
  • 19b8d37ae8
    fix: preload with skip hooks (#5310) Cr 2022-05-04 18:57:53 +08:00
  • 044fd12f15 Adds new getter to DB for getting a transactions context Chris Townsend 2022-05-02 20:33:19 +01:00
  • e2663decfd
    fix: preload with skip hooks a631807682 2022-05-02 12:54:34 +08:00
  • b0104943ed
    fix: callbcak sort when using multiple plugin (#5304) Cr 2022-04-30 09:57:16 +08:00
  • d3488ae6bc
    fix: add judge result of auto_migrate (#5306) Heliner 2022-04-30 09:50:53 +08:00
  • fe6d4dafd1 fix: add judge result of auto_migrate fredhan 2022-04-29 18:52:07 +08:00
  • 140eaaa359
    fix: callbcak sort when using multiple plugin a631807682 2022-04-29 15:12:35 +08:00
  • 69c8960f03
    Merge bf828c1274fc43986cbb1c5c4e2e9395fed4b92b into bd7e42ec651f66539009371675bff38645b9b6b8 Heliner 2022-04-28 20:54:27 -05:00
  • bf828c1274 judge result of AutoMigrate fredhan 2022-04-29 09:35:21 +08:00
  • bd7e42ec65
    fix: AutoMigrate with special table name (#5301) Cr 2022-04-27 21:13:48 +08:00
  • 6f8aa6f260
    test: migrate with special table name a631807682 2022-04-27 18:20:32 +08:00
  • c2b6dc98ce
    fix: AutoMigrate with special table name a631807682 2022-04-27 18:05:03 +08:00
  • 6a6dfdae72 Refactor FirstOrCreate, FirstOrInit v1.23.5 Jinzhu 2022-04-26 17:16:48 +08:00
  • ea59298310
    chore(deps): bump gorm.io/driver/postgres from 1.3.4 to 1.3.5 in /tests dependabot[bot] 2022-04-25 07:13:28 +00:00
  • b0f599c74a
    chore(deps): bump gorm.io/driver/sqlite from 1.3.1 to 1.3.2 in /tests dependabot[bot] 2022-04-25 07:13:25 +00:00
  • 0211ac91a2
    index: add composite id (#5269) Chiung-Ming Huang 2022-04-25 11:39:23 +08:00
  • b7fd54ddfb index: improve the comments for the test cases of composite id Chiung-Ming Huang 2022-04-24 19:10:53 +08:00
  • a0e23e45fa index: add test cases of composite id Chiung-Ming Huang 2022-04-24 19:06:08 +08:00
  • a0cc631272
    test: test for postgrs serial column (#5234) Cr 2022-04-24 12:13:27 +08:00
  • 5b7cadf0e4
    test: for drop sequence a631807682 2022-04-24 11:48:51 +08:00
  • 3643f856a3
    check for pointer to pointer value (#5278) aelmel 2022-04-24 04:10:36 +03:00
  • 9b80fe9e96
    fix: stmt.Changed zero value filed behavior (#5281) Cr 2022-04-24 09:08:52 +08:00
  • 62dc2849c3 Add test for new schema common initials Behrooz Kamali 2022-04-22 18:30:19 -07:00
  • 668ab39341 Add new schema common initials Behrooz Kamali 2022-04-22 17:53:38 -07:00