Commit Graph

113 Commits

Author SHA1 Message Date
Leon Maia ff3c23c9e9 fixes #593 - Dont include quotes on dest table 2015-08-13 09:04:21 +08:00
Jinzhu d21eed4b66 Don't include Order for counting sql 2015-08-05 15:58:11 +08:00
Jinzhu 0def184b0c Merge pull request #572 from eirmag/master
Table suffix to create tables with InnoDB engine
2015-08-02 07:28:42 +08:00
Gabriel eef40a06ff Rename the parameter to table_options and avoid introduction of new API function OpenWithTableSuffix 2015-08-01 22:46:38 +00:00
Jinzhu e2e417a8c2 Fix complicated Select 2015-08-01 11:49:34 +08:00
Jinzhu 393d8a3a52 Fix possible duplciated foreign key name 2015-08-01 11:27:01 +08:00
Jinzhu bee1c8d119 Merge pull request #576 from kiwih/master
Add basic support for multiple HAVING clauses.
2015-08-01 10:00:05 +08:00
Jinzhu 8a88d665d5 Add QuoteIfPossible for Scope 2015-08-01 09:25:06 +08:00
Jinzhu 25ba9487aa Create join table with computed foreign keys 2015-07-31 16:33:44 +08:00
Jinzhu 9c52c29e90 Fix test TestRelated 2015-07-30 18:56:05 +08:00
Jinzhu fea291e796 Fix compile error for scope_private 2015-07-30 17:58:49 +08:00
kiwih a9cdf1dc7f Add basic support for multiple HAVING clauses. All clauses will be ANDed together. 2015-07-22 15:00:20 +12:00
Jinzhu 4c3daade4c Don't quote column if it is not only column name when create index 2015-07-21 10:12:31 +08:00
Gabriel 8848fc476d Table suffix to create tables with InnoDB engine with mysql. Alter table is not affected yet, only create table and auto migration 2015-07-19 22:42:48 +00:00
Jay Taylor e31752757a Added missing field name quoting for `ALTER TABLE' and `CREATE INDEX' statements. 2015-06-29 15:35:50 -07:00
Jinzhu d75612b86f Update JoinTableHandler API 2015-06-19 11:32:11 +08:00
Jinzhu cbebcf6d6f Quote db name when create primary keys 2015-05-22 11:13:14 +08:00
Constantin Schomburg a0c527f1cc Fix including ignored field in Where condition 2015-05-09 13:12:13 +02:00
Jinzhu ef4299b398 Add RowQuery callback 2015-04-17 18:27:20 +08:00
Jinzhu 67266ebdb3 Fix create join table with multi primary keys 2015-04-09 15:51:47 +08:00
Jinzhu a952601f21 Fix query related resources with customized column name 2015-04-03 16:32:53 +08:00
Jay Taylor 8389d92f78 Futher clarified error messaging for invalid `plucks'. 2015-03-23 15:11:41 -07:00
Jinzhu 44b106c8e2 Fix tests 2015-03-19 18:23:54 +08:00
Jinzhu 6ba0c1661f Refactor JoinTableHandler 2015-03-18 18:26:58 +08:00
Jinzhu c13e2f18f8 New JoinTableHandler 2015-03-18 11:47:11 +08:00
Will Glynn 87ff58b598 Fix creation of composite unique indexes 2015-03-17 09:04:12 -05:00
Jinzhu da7830ea50 Add SelectAttrs, OmitAttrs 2015-03-12 15:50:38 +08:00
Jinzhu 94adc3e1d8 Export Unscoped Field for search 2015-03-12 15:01:59 +08:00
Jinzhu 6e5d46bf37 Refactor Search API 2015-03-12 14:47:07 +08:00
Jinzhu a549b6bd49 Refactor SQL Tag 2015-03-11 17:05:58 +08:00
Jinzhu 49454839bd Support Multi primary keys 2015-03-11 11:28:30 +08:00
Jason Lee 708d85763c Dialect Index first, before AddIndex 2015-03-09 21:33:25 +08:00
Jinzhu 6fed43162f Create Indexes with AutoMigrate 2015-03-09 17:22:16 +08:00
Jinzhu 42f934d60e Fix nil condition 2015-03-06 10:49:26 +08:00
Jinzhu 80576bbbbc Add Table method for JoinTableHandler 2015-03-04 13:56:47 +08:00
Jinzhu 61a878dc2d Fix Related for belongs to association 2015-03-02 15:55:24 +08:00
Jinzhu 4e8d43dd4f Refactor check HasTable, HasColumn 2015-02-28 17:01:27 +08:00
Jinzhu 22b1a93e03 Add JoinTableHandler test 2015-02-28 14:16:51 +08:00
Jinzhu aa0a4012be Escaping table names when AddForeignKey 2015-02-28 09:25:05 +08:00
Jinzhu ce72988e96 Refactoring API for plugin system 2015-02-26 14:40:30 +08:00
Jinzhu 10340e6ad7 Support SQL expression 2015-02-24 22:06:35 +08:00
Jinzhu 068e774540 Overwrite Select conditions 2015-02-23 08:58:52 +08:00
Jinzhu 49a33dd5d0 Remove other select conditions for count 2015-02-22 22:40:12 +08:00
Jinzhu 0d2c37e310 Refactor Model Struct 2015-02-18 12:50:37 +08:00
Jinzhu 5c478b46e1 Use Common Initialisms from golint 2015-02-18 10:36:32 +08:00
Jinzhu 672ba4ffc9 Rename ToSnake to ToDBColumnName 2015-02-18 09:26:35 +08:00
Jinzhu 0b32041135 Review and Refactor 2015-02-17 22:55:14 +08:00
Jinzhu d6439f4147 Fix tests after refactor 2015-02-17 18:01:24 +08:00
Jinzhu 139b9a37e7 Merge branch 'master' into refactor 2015-02-17 08:38:32 +08:00
Jinzhu 73b6f0eace Linting according to golint 2015-02-17 08:34:01 +08:00