Commit Graph

2059 Commits

Author SHA1 Message Date
Nikola Kovacs ed9cfac496 add failing test for long foreign keys in mysql 2016-05-21 19:12:02 +02:00
Igor Noskov 13ac0839c4 fix m2m nested preload 2016-05-12 14:48:08 +06:00
Jinzhu 57c72125b3 Merge pull request #1001 from stroborobo/assoc-error
association: dont execute Append/Replace/Delete if Error already present
2016-05-09 22:47:58 +08:00
Jinzhu 0fd2fd66d5 Refactor handleHasManyPreload 2016-05-09 22:42:07 +08:00
Jinzhu 4786e830d6 Fix create join table 2016-05-09 22:32:33 +08:00
Dirk-Jan d02c2a37ea Improved preload m2m performance 2016-05-09 14:24:53 +02:00
Björn f159fa3d74 association: dont execute Append/Replace/Delete if Error already present 2016-05-06 14:10:43 +02:00
Jinzhu bf413d67d3 Merge pull request #959 from vibhavp/master
Fix postgres' HasForeignKey
2016-05-04 21:22:04 +08:00
Jinzhu 34482e028f Update README 2016-05-04 21:13:24 +08:00
Jinzhu 1073563f1e Merge pull request #987 from moberemk/patch-1
Properly quotes column names in post-insert SELECT
2016-05-04 21:04:23 +08:00
Jinzhu c669e4b791 Set AUTO_INCREMENT if field is an auto increment field 2016-05-04 10:37:31 +08:00
Mark Oberemk 3b85ddcc9a Properly quotes column names in post-insert SELECT
This commit closes #979 by fixing the post-insert SELECT call
2016-05-02 12:25:04 -04:00
Jinzhu 465f8ea05b Fix ignore fields 2016-05-02 19:34:11 +08:00
Vibhav Pant e38e096ca0 Fix postgres' HasForeignKey 2016-04-11 18:48:39 +05:30
Jinzhu 5174cc5c24 Only get address from non pointer when call method, fix #912 2016-04-04 22:49:28 +08:00
Jinzhu 9fd05d1bad Print warning message when using unaddressable value with Update 2016-04-04 21:33:11 +08:00
Jinzhu c49e68fac2 Make Update works with unaddressable value 2016-04-04 20:57:42 +08:00
Jinzhu 2530dcbccd Quote order column name, fix #918 2016-03-23 10:29:52 +08:00
Jinzhu 7d5d171168 Merge pull request #919 from nkovacs/patch-1
fix mysql HasForeignKey
2016-03-23 07:13:27 +08:00
Nikola Kovacs 1ac3eedca1 fix mysql HasForeignKey 2016-03-22 13:49:22 +01:00
Jinzhu 021d7b3314 Fix migrate indexes with CreateTable, AutoMigrate for soft delete 2016-03-17 18:12:25 +08:00
Jinzhu 8c099e0945 Fix AddUniqueIndex with soft delete 2016-03-17 18:09:21 +08:00
Jinzhu 55a8e63aad If size haven't been set, use `text` as string's default type for postgres, close #910 2016-03-16 23:06:27 +08:00
Jinzhu 83002c4d5f Include default search attributes when query with Join, close #906 2016-03-14 08:05:45 +08:00
Jinzhu 1819dda80a Export LogWriter interface 2016-03-10 17:38:52 +08:00
Jinzhu 7c43d9fc36 Fix scan columns with same name 2016-03-10 17:35:19 +08:00
Jinzhu 846a2d401a Fix scan columns with same name 2016-03-10 17:13:48 +08:00
Jinzhu bd99af5067 Fix GORM with Go 1.4 #892 2016-03-09 20:44:31 +08:00
Jinzhu 8de97c2883 Refactor Scope updatedAttrsWithValues 2016-03-09 16:45:53 +08:00
Jinzhu a0aa21aec5 Refactor 2016-03-08 22:29:58 +08:00
Jinzhu d08894cd69 Rename test files 2016-03-08 22:00:15 +08:00
Jinzhu 9d57c6b961 Merge pull request #794 from jinzhu/v1.0_dev
The first public release
2016-03-08 12:20:12 +08:00
Jinzhu 2e9d5e6f76 Test overwrite foreign keys 2016-03-07 23:51:04 +08:00
Jinzhu 2c089573cd Add tests for override belogns to foreign keys with tag 2016-03-07 23:35:31 +08:00
Jinzhu 946909f1e8 Add DropTableIfExists back 2016-03-07 21:34:14 +08:00
Jinzhu d169ac55e2 Delete CHANGELOG.md 2016-03-07 21:24:42 +08:00
Jinzhu 89e8d4f5e1 Update README 2016-03-07 21:18:48 +08:00
Jinzhu 88184a989e Update godoc 2016-03-07 21:09:05 +08:00
Jinzhu 779c4d436e Refactor based on golint 2016-03-07 18:43:15 +08:00
Jinzhu ec110657da Refactor based on golint 2016-03-07 17:49:55 +08:00
Jinzhu 3055bad1e8 scope.Fields() return slice of *Field 2016-03-07 14:25:41 +08:00
Jinzhu 37210495bf Fix check HasColumn for sqlite, close #865 2016-03-06 09:39:38 +08:00
Jinzhu 60a859d966 Add check HasForeignKey method to dialect, also move mssql dialect to a separate repo as it is not well tested, close #832 2016-03-05 22:51:11 +08:00
Jinzhu b6a2710a15 Don't execute SET IDENTITY_INSERT if dialect is not mssql 2016-03-05 21:24:54 +08:00
Jinzhu 2522f03c1f Set identity insert on after create transaction, close #841 2016-03-05 19:22:33 +08:00
Jinzhu c811590d4e Add dialects for supported databases for easier to use 2016-03-05 18:54:59 +08:00
Jinzhu 41ab9f433f Merge branch 'master' into v1.0_dev 2016-03-04 22:01:23 +08:00
Jinzhu f8377d80bf Merge pull request #822 from jseriff/master
Remove regex guess on counting query
2016-03-04 21:58:27 +08:00
Jinzhu e0cca89ce3 Handle binary in log, close #733 2016-03-04 09:12:01 +08:00
Jinzhu 8b291cc32b Fix format log, close #752 2016-03-04 08:59:51 +08:00