1 | <?php namespace jlourenco\support\Database; |
||
12 | class MySqlGrammar extends IlluminateMySqlGrammar { |
||
13 | |||
14 | public function __construct() |
||
26 | |||
27 | /** |
||
28 | * Get the SQL for a "comment" column modifier. |
||
29 | * |
||
30 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
31 | * @param \Illuminate\Support\Fluent $column |
||
32 | * @return string|null |
||
33 | */ |
||
34 | protected function modifyCollate(IlluminateBlueprint $blueprint, Fluent $column) |
||
42 | |||
43 | /** |
||
44 | * Get the SQL for a "comment" column modifier. |
||
45 | * |
||
46 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
47 | * @param \Illuminate\Support\Fluent $column |
||
48 | * @return string|null |
||
49 | */ |
||
50 | protected function modifyComment(IlluminateBlueprint $blueprint, Fluent $column) |
||
58 | |||
59 | /** |
||
60 | * Compile a create table command. |
||
61 | * |
||
62 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
63 | * @param \Illuminate\Support\Fluent $command |
||
64 | * @param \Illuminate\Database\Connection $connection |
||
65 | * @return string |
||
66 | */ |
||
67 | public function compileCreate(IlluminateBlueprint $blueprint, Fluent $command, Connection $connection) |
||
78 | |||
79 | /** |
||
80 | * Create the column definition for a binary type. |
||
81 | * |
||
82 | * @param \Illuminate\Support\Fluent $column |
||
83 | * @return string |
||
84 | */ |
||
85 | protected function typeBinary(Fluent $column) |
||
89 | |||
90 | /** |
||
91 | * Create the column definition for an 'set' type. |
||
92 | * |
||
93 | * @param \Illuminate\Support\Fluent $column |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function typeSet(Fluent $column) |
||
100 | |||
101 | /** |
||
102 | * Compile an index creation command. |
||
103 | * |
||
104 | * @param \Illuminate\Database\Schema\Blueprint $blueprint |
||
105 | * @param \Illuminate\Support\Fluent $command |
||
106 | * @param string $type |
||
107 | * @return string |
||
108 | */ |
||
109 | protected function compileKey(IlluminateBlueprint $blueprint, Fluent $command, $type) |
||
139 | |||
140 | /** |
||
141 | * Compile the query to determine if the foreign key exists |
||
142 | * |
||
143 | * @return string |
||
144 | */ |
||
145 | public function compileHasForeign() |
||
149 | |||
150 | } |