Commit Graph

133 Commits

Author SHA1 Message Date
Taylor Otwell 1d93cab0d0 Cleaning up foreign key support. Added drop_foreign command.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-02 10:23:27 -06:00
Taylor Otwell c002ae6337 Use constraints for "unique" on Postgres schemas.
Previous was using CREATE INDEX, should be using ADD CONSTRAINT as this will create the index automatically per Postgres documentation.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-02 09:54:43 -06:00
Taylor Otwell 1302ded5f8 Added foreign key support to schema builder for MySQL, Postgres, and SQL Server.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-02 09:41:30 -06:00
Colin Viebrock b7d068f2f2 Move method into grammar.php instead of duplicating in each grammar 2012-02-29 15:21:20 -06:00
Colin Viebrock 26c7273493 Add unsigned() modifier, so you can create unsigned integer columns 2012-02-29 15:09:13 -06:00
Taylor Otwell 621fee09be cleaning up code.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-02-27 09:28:21 -06:00
Taylor Otwell 484a737382 make the pdo fetch style configurable. 2012-02-24 11:35:02 -06:00
Taylor Otwell 9804bb55dc comment cleanup. 2012-02-24 11:17:56 -06:00
Taylor Otwell f6ef233d39 alias aggregate column in query grammar. 2012-02-21 09:23:24 -06:00
Taylor Otwell fe0b4b287d cleaning up code. 2012-02-17 16:30:11 -06:00
Taylor Otwell 3507d15323 fix charset in mysql and pgsql connectors. 2012-02-17 14:38:25 -06:00
Taylor Otwell faa2eec3b9 consolidate database methods into db::query. 2012-02-17 08:47:06 -06:00
Taylor Otwell e828b6c0c3 all database exceptions now include SQL and bindings in message for easier debugging. 2012-02-16 22:32:09 -06:00
Taylor Otwell dd6402c648 prefix built-in events with laravel. 2012-02-16 16:26:39 -06:00
Taylor Otwell 0e63717be9 use default index names on implicit indexes. 2012-02-16 15:37:06 -06:00
Taylor Otwell 317e8db81f change query event name. 2012-02-16 09:08:00 -06:00
Taylor Otwell 36834c1118 add database.profile config option. 2012-02-16 08:46:48 -06:00
Taylor Otwell b29f8a88fe add default value for index names. 2012-02-15 16:17:47 -06:00
Taylor Otwell ab17ea674a fix bug in db profiling. 2012-02-15 13:29:37 -06:00
Taylor Otwell 479b3f6773 cleaning up various codes. 2012-02-13 23:51:33 -06:00
Taylor Otwell 620f3ba91f fixing a bug and cleaning. 2012-02-12 21:52:28 -06:00
Taylor Otwell b0a223aa4b cleaning up comment. 2012-02-12 21:27:07 -06:00
Taylor Otwell 0f2d311739 cleaning up some code. 2012-02-12 16:34:11 -06:00
Taylor Otwell 3a92facc76 updated routing to fix several issues. 2012-02-12 14:48:36 -06:00
Taylor Otwell 490eb0f5bf remove die. 2012-02-08 11:35:29 -06:00
Taylor Otwell 5e59a72b5b fix bug in paginator. 2012-02-08 11:16:55 -06:00
Taylor Otwell e88d2213ab added support for complex joins on query builder. 2012-02-08 10:53:58 -06:00
Taylor Otwell 0c133dd96c trimming comment. 2012-02-06 23:02:49 -06:00
Taylor Otwell 8240b2ffd1 move shortcut method into grammar. 2012-02-06 22:09:15 -06:00
Taylor Otwell 087f50a52c cast bindings to array. 2012-02-06 21:39:30 -06:00
Taylor Otwell 1351a2b189 cleaning up code. 2012-02-06 20:19:29 -06:00
Taylor Otwell bbae90adad fix pagination comment. 2012-02-06 15:57:37 -06:00
Taylor Otwell cd17761f72 fix distinct problems in paginator. 2012-02-06 15:28:03 -06:00
Taylor Otwell 2e492a710a Merge pull request #308 from sparksp/patch-3
SQLServer::limit and ::offset return strings
2012-02-04 18:00:21 -08:00
Phill Sparks 8e5a143bbe SQLServer::limit and ::offset return strings 2012-02-04 21:33:25 +00:00
Phill Sparks 62072e5281 PHPDoc fixes 2012-02-04 21:30:52 +00:00
Taylor Otwell 3c016285a1 make log function non-static. 2012-02-01 08:27:46 -06:00
Taylor Otwell 982e009a96 added query event for hooking into database for logging. 2012-02-01 08:25:54 -06:00
Taylor Otwell ea13ddfb7f fix aggregate selecting bug. 2012-01-30 10:38:12 -06:00
Taylor Otwell 1ec6fc766c added support for database table prefixes. 2012-01-29 13:07:15 -06:00
Taylor Otwell 97fcea1e51 cleaned up paths. 2012-01-28 14:55:08 -06:00
Taylor Otwell f44c565ee4 converted path constants to $GLOBALS. 2012-01-27 16:17:43 -06:00
Taylor Otwell d4c5114792 code quality and backreference support in controllers. 2012-01-25 16:07:16 -06:00
Taylor Otwell ae56f68c87 use query grammar to parameterize where in sql shortcut. 2012-01-25 15:34:19 -06:00
Taylor Otwell 27fdb1e3f5 added key and session tasks. 2012-01-24 15:02:51 -06:00
Taylor Otwell 70dd657e80 make aggregate method public. 2012-01-24 13:36:22 -06:00
Taylor Otwell 67696d8114 index names may be specified on fluent setup. 2012-01-24 08:43:12 -06:00
Taylor Otwell 3569edbb0b fixed comment in grammar. 2012-01-21 10:46:03 -06:00
Taylor Otwell 4737c6d8a9 Merge pull request #244 from codler/patch-7
DB::raw should have higher precedence than alias
2012-01-21 08:45:09 -08:00
Taylor Otwell e41657c4d1 do not check for existence of sqlite database before connecting. 2012-01-21 10:39:54 -06:00