Richard Knop
8dfcab0f7f
Fixed an occurence of a panic while preloading non existent fields.
2016-05-24 00:54:53 +08:00
Jinzhu
27522453de
Merge pull request #1031 from nkovacs/add-foreign-key-panic-fix
...
fix panic in AddForeignKey on mysql dialect
2016-05-22 19:10:33 +08:00
Nikola Kovacs
7983fc6269
fix panic in AddForeignKey on mysql dialect
2016-05-22 09:58:37 +02:00
Jinzhu
4c9c024939
Merge pull request #1029 from nkovacs/mysql-foreign-key-length-fix
...
Mysql foreign key length fix
2016-05-22 08:00:40 +08:00
Nikola Kovacs
6fca4ec9fe
Add wercker.yml with postgres and mysql tests
2016-05-22 01:59:25 +02:00
Nikola Kovacs
6eb73ae654
Fix too long foreign key names in mysql.
...
The dialect must define its own foreign key generator method.
The previous default is available as a method on gorm.DefaultForeignKeyNamer
and can be embedded in other dialects.
The mysql dialect uses the first 24 characters plus an sha1 hash of the
full key name if the key name is more than 64 characters.
2016-05-22 00:13:26 +02:00
Nikola Kovacs
58ce6153e2
don't test AddForeignKey on sqlite
2016-05-21 23:19:41 +02:00
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