Commit Graph

2196 Commits

Author SHA1 Message Date
Jinzhu ecc23e4432 Merge pull request #211 from rbg/master
Fix the HasTable test, for real.
2014-08-29 22:58:35 +08:00
Robert B Gordon bc616fafbf Fix the HasTable test, for real. 2014-08-29 09:53:12 -05:00
Jinzhu 43be73504f Merge pull request #210 from rbg/master
HasTable Test should clean up.
2014-08-29 22:30:19 +08:00
Robert B Gordon 52de7419f2 HasTable Test should clean up. 2014-08-29 08:57:38 -05:00
Jinzhu 80b563e312 Merge pull request #209 from rbg/master
Add HasTable()
2014-08-29 13:57:20 +08:00
Robert B Gordon 4ee47c9228 add test for HasTable() 2014-08-29 00:51:45 -05:00
Robert B Gordon 94aa843830 Add HasTable() 2014-08-29 00:28:54 -05:00
Jinzhu 2d125e035c Fix check postgres has table 2014-08-29 06:22:59 +08:00
Jinzhu 423d9496c1 update tests 2014-08-28 16:14:44 +08:00
Jinzhu e6715ce175 Merge pull request #208 from longnguyen11288/patch-1
Fixed spelling error
2014-08-28 10:44:12 +08:00
Long Nguyen 4fa2faf64c Fixed spelling error 2014-08-27 12:56:25 -04:00
Jinzhu 8f22434ded Use the original DB when create a new Scope 2014-08-27 16:50:22 +08:00
Jinzhu 5347765bd3 Merge pull request #206 from cihangir/master
gorm: added ability to change the time.now format
2014-08-27 16:19:55 +08:00
Jinzhu 0ed805099e Fix register callbacks in some cases 2014-08-27 16:10:33 +08:00
Jinzhu 922395c965 Add InstantSet for DB 2014-08-25 17:10:46 +08:00
Jinzhu 3af077ac46 Refact First, Last to make it possible to reset table name in Plugin 2014-08-25 16:41:26 +08:00
Cihangir SAVAS 4e90fbf4e8 gorm: added ability to change the time.now format 2014-08-23 01:00:04 -07:00
Jinzhu 39ac95adbb Add InstanceSet, InstanceGet fomr Scope 2014-08-20 17:05:02 +08:00
Jinzhu 9012c9ea09 Add Set, Get method for DB 2014-08-20 16:25:01 +08:00
Jinzhu a80a0a1636 By default, pluralize table name 2014-08-20 13:46:10 +08:00
Jinzhu 14fdbdd965 AutoMigrate accepts structs 2014-08-20 11:56:39 +08:00
Jinzhu 10668ee323 Don't raise error when get TableName even Scope has no db 2014-08-20 10:49:48 +08:00
Jinzhu 07e2d49b22 Fix invalid reflect value 2014-08-15 11:14:33 +08:00
Jinzhu febc826511 Don't check relations if field is ignored 2014-08-14 21:54:23 +08:00
Jinzhu 131b504941 Merge pull request #184 from shirou/master
Add DropTableIfExists
2014-08-06 16:42:03 +08:00
Shirou WAKAYAMA b4fc3d9753 add document about DropTableIfExists. 2014-08-05 23:16:22 +09:00
Shirou WAKAYAMA 5ad9306146 Add DropTableIfExists. 2014-08-05 23:14:40 +09:00
Jinzhu ffab2d3901 I am not using Guard for testing now 2014-08-05 10:44:25 +08:00
Jinzhu 4d98c8c0bc Specify database dialect when open database, fixes #169 2014-08-05 10:34:41 +08:00
Jinzhu 943a873051 Merge pull request #183 from bruston/errorf
Use fmt.Errorf
2014-08-05 10:14:25 +08:00
Benjamin Ruston d699c85486 Use fmt.Errorf 2014-08-04 19:54:05 +01:00
Jinzhu 8308491d9a Fix AutoMigrate with nested Scanner 2014-08-04 14:37:51 +08:00
Jinzhu 90106d82c5 Export Relationship 2014-07-31 14:38:16 +08:00
Jinzhu df4a00a945 Update README with Associations 2014-07-30 22:50:27 +08:00
Jinzhu ba74a9545b Make clear works 2014-07-30 22:15:31 +08:00
Jinzhu 5a95050464 Make association replace works 2014-07-30 22:10:12 +08:00
Jinzhu db3da2c636 Make association Count works 2014-07-30 21:43:53 +08:00
Jinzhu 6c4b635176 Replace BeforeAssociation, AfterAssociation with association type 2014-07-30 21:14:10 +08:00
Jinzhu 2356182ea7 Rename joinTable to relationship 2014-07-30 20:59:52 +08:00
Jinzhu e1e68debdc improve association 2014-07-30 20:48:36 +08:00
Jinzhu efd3b7678b Be able to find many to many relations 2014-07-30 16:22:26 +08:00
Jinzhu 9b3be66a77 Refact scope Fields 2014-07-30 15:15:23 +08:00
Jinzhu 0d3085393e Add IndirectValue for Scope 2014-07-30 14:58:00 +08:00
Jinzhu ba95de5c50 Rename relations to associations 2014-07-30 14:30:21 +08:00
Jinzhu 371e6af99e Create join table when run AutoMigrate 2014-07-30 14:20:38 +08:00
Jinzhu 14590a65dc Save many to many relations into join table 2014-07-30 14:18:15 +08:00
Jinzhu a7aaf151cf Use JoinTable instead of ForeignKey 2014-07-30 11:32:18 +08:00
Jinzhu d7400c2df4 Don't sort by primary key if it doesn't exist in First/Last 2014-07-29 18:29:03 +08:00
Jinzhu 0c63e57f5c Use tag to set primary key 2014-07-29 18:21:36 +08:00
Jinzhu f56e071375 Refact parse SQL tag, set default size to 255 2014-07-29 17:52:23 +08:00