Taylor Otwell
0893f3cca6
Merge branch 'master' into develop
2012-03-21 10:59:35 -05:00
Taylor Otwell
43212f8505
Fix bug in eloquent model.
2012-03-21 10:38:39 -05:00
Taylor Otwell
ce9f4f1db7
Added support for on_delete and on_cascade of foreign keys.
2012-03-21 10:33:06 -05:00
Taylor Otwell
4336bb885a
Fix attribute retrieval bug in Eq2.
2012-03-20 11:43:11 -05:00
Taylor Otwell
079400ff3d
Allow passing in a model instance to relationship insert / update methods.
2012-03-20 09:03:31 -05:00
Taylor Otwell
e540fd3b6d
Automatically detect eloquent table names.
2012-03-19 14:11:11 -05:00
Taylor Otwell
d80730cf0d
Removed transaction method from Eloquent model since it is made pointless by DB::transaction.
2012-03-19 08:43:07 -05:00
Anton Khodakivskiy
1044367c1e
added default values to the signature of Query::left_join to allow closure-based join conditions
2012-03-19 07:47:20 -04:00
Taylor Otwell
0455438ebe
Added transaction method to database connection and eloquent model.
2012-03-18 22:39:04 -05:00
Taylor Otwell
fcff36a0ac
Added related model updating from belongs_to relationship.
2012-03-17 23:14:01 -05:00
Taylor Otwell
68b4e55336
Cleaning up code.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-17 16:12:26 -05:00
Taylor Otwell
8c209a7a61
Just cleaning up some code.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-17 15:42:01 -05:00
Taylor Otwell
762f2402c3
Fixing bugs and improving.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 15:32:26 -05:00
Taylor Otwell
b5e75f6fcf
Fixing bugs and improving.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 14:08:28 -05:00
Taylor Otwell
dc92dd264d
Adding auto detection of intermediate table names.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 13:01:48 -05:00
Taylor Otwell
c3d95122e4
Fixing bugs… adding better pivot support.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 11:29:21 -05:00
Taylor Otwell
c9c0ddf569
Fixing bugs in Eq2.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 10:29:43 -05:00
Taylor Otwell
d6d667af90
Added Eloquent 2.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 08:37:31 -05:00
Taylor Otwell
3de0d1af66
Make the query where_nested method public.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-15 16:12:18 -05:00
Taylor Otwell
afcb60ec60
Adding comment in database grammar.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-12 10:31:12 -05:00
Kelly Banman
17f7389bc5
Fix prefixing raw tables
2012-03-09 08:48:20 -08:00
Taylor Otwell
6f7780a0f8
Merge branch 'refs/heads/master' into develop
2012-03-07 14:13:01 -06:00
Shawn McCool
17ac74d7f8
made all sqlite fields nullable to fix various problems with the difference in sqlite's null functionality
2012-03-07 20:52:17 +01:00
Taylor Otwell
46595ce55e
Unsigned only supported by MySQL.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-04 14:28:49 -06:00
Taylor Otwell
f3df013753
Added support for decimal data type in schema.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-04 14:23:59 -06:00
Taylor Otwell
d43157b61f
Fix drop_foreign SQL grammar for MySQL.
...
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-02 10:27:37 -06:00
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