Commit Graph

51 Commits

Author SHA1 Message Date
Taylor Otwell
b061b9b21c Merge pull request #1150 from franzliedke/patch-40
Get rid of duplicate code for DROP TABLE in schema grammars.
2012-09-01 18:05:29 -07:00
Franz Liedke
e11d13ae31 Get rid of duplicate code for DROP TABLE in schema grammars. 2012-08-27 15:09:11 +02:00
Dayle Rees
4b8ba99211 Merge pull request #1043 from tobsn/patch-10
type boolean is tinyint(1)
2012-08-12 12:43:15 -07:00
Sergii Grebeniuk
690e8572aa phpdoc fixes 2012-08-03 18:17:48 +03:00
Tobsn
5716b4da40 type boolean is tinyint(1)
switched from default "tinyint" which creates a tinyint(4) to the
standard mysql boolean type "tinyint(1)"
2012-08-02 00:54:30 +02:00
Dayle Rees
2c6ed23b45 fixing merge issues 2012-07-27 13:52:15 +01:00
Dayle Rees
3b09f99f9e Merge pull request #989 from dprvig/develop
Fixed various typos throughout laravel folder.
2012-07-27 03:54:40 -07:00
Josh Miller
0ea30993d4 Fixed various typos throughout laravel folder.
Signed-off-by: Josh Miller <josh@joshmmiller.com>
2012-07-21 20:18:55 -04:00
Taylor Otwell
38234c61dd Merge pull request #480 from cviebrock/schema-rename
Schema::rename('oldtable','newtable') support
2012-07-19 13:42:34 -07:00
Franz Liedke
61364c553d Make sure default values in schema columns are always non-empty (especially booleans). 2012-07-17 23:47:05 +02:00
Chris Berthe
b325e954e3 Merge remote-tracking branch 'upstream/develop' into develop 2012-07-12 11:15:43 -04:00
Taylor Otwell
845023fc80 Merge pull request #847 from tobsn/patch-1
NOT NULL order issue fixed!
2012-07-06 18:12:11 -07:00
Chris Berthe
f3d756476b Merge remote-tracking branch 'upstream/develop' into develop 2012-06-25 13:11:54 -04:00
Tobsn
31abcd599b unique typo 2012-06-22 08:54:10 -07:00
Tobsn
0b9b102dc7 NOT NULL order issue fixed!
thanks @crynobone !!!
2012-06-22 08:50:09 -07:00
Dayle Rees
8d13bf9c5a removing unsigned from mysql grammer due to bug
Signed-off-by: Dayle Rees <thepunkfan@gmail.com>
2012-06-22 16:25:50 +01:00
Taylor Otwell
1b062499dd Merge pull request #774 from franzliedke/patch-8
Avoid unnecessary end() in Table::command() function
2012-06-20 09:59:50 -07:00
Taylor Otwell
3fcb3aac6c Merge pull request #775 from franzliedke/patch-9
Foreign key creation ignores database prefix
2012-06-20 09:58:38 -07:00
Tobias Orterer
e0d491cb15 Added UNSIGNED to mysql grammar inrementer()
Added UNSIGNED to the mysql grammar file because auto increment fields
only run upwards, it's a waste of space to provide negative values by
the default SIGNED state of INT.
2012-06-16 19:46:50 -07:00
Chris Berthe
fafaf724b0 Grammar/Vocabulary fixes
Signed-off-by: Chris Berthe <chrisberthe@gmail.com>
2012-06-13 11:19:20 -04:00
Franz Liedke
7ead1796d0 Apply prefix to foreign key's "on" attribute, too. 2012-06-06 12:33:50 +03:00
Franz Liedke
605be704ff Avoid unnecessary end() in Table::column() function. 2012-06-06 12:23:00 +03:00
Franz Liedke
8fc80c47d9 Avoid unnecessary end() in Table::command() function. 2012-06-06 12:20:30 +03:00
Taylor Otwell
1ac911f05d Merge branch 'master' of github.com:laravel/laravel into develop 2012-06-03 17:36:16 -05:00
AndrewBNZ
c8466f5766 Fixed typo from previous fix, should be $command->columns not $command->$columns. 2012-06-03 23:51:38 +12:00
Taylor Otwell
691d68ba54 improve / fix postgres support. 2012-05-30 14:23:27 -05:00
AndrewBNZ
b4b9c1f442 Fixes Laravel issue #727 - updated sqlserver grammar file to fix error in primary key function. 2012-05-30 18:42:22 +12:00
Taylor Otwell
94b8582865 Add DateTime support to database binding layer.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-10 15:03:42 -05:00
Colin Viebrock
7d4a346f84 Adding Schema::rename('oldtable','newtable') support
Signed-off-by: Colin Viebrock <colin@viebrock.ca>
2012-04-02 11:30:53 -05:00
Taylor Otwell
e96f75e8cc Fixing bugs in database layer. 2012-03-22 13:12:27 -05:00
Taylor Otwell
e5b3b196ab Updated change-log. Prepend table names to default index names in schema. 2012-03-22 09:11:51 -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
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
b29f8a88fe add default value for index names. 2012-02-15 16:17:47 -06:00
Taylor Otwell
479b3f6773 cleaning up various codes. 2012-02-13 23:51:33 -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
Phill Sparks
62072e5281 PHPDoc fixes 2012-02-04 21:30:52 +00:00
Taylor Otwell
1ec6fc766c added support for database table prefixes. 2012-01-29 13:07:15 -06:00
Taylor Otwell
27fdb1e3f5 added key and session tasks. 2012-01-24 15:02:51 -06:00
Taylor Otwell
dd8ebe60f0 make index names required. 2012-01-21 10:36:39 -06:00