@@ 218-225 (lines=8) @@ | ||
215 | * |
|
216 | * @return static |
|
217 | */ |
|
218 | public function withMariaDb(string $database = 'forge') |
|
219 | { |
|
220 | $this->payload['maria'] = 1; |
|
221 | $this->payload['database'] = $database; |
|
222 | $this->payload['database_type'] = 'maria'; |
|
223 | ||
224 | return $this; |
|
225 | } |
|
226 | ||
227 | /** |
|
228 | * Indicates that server should be provisioned with MySQL. |
|
@@ 234-241 (lines=8) @@ | ||
231 | * |
|
232 | * @return static |
|
233 | */ |
|
234 | public function withMysql(string $database = 'forge') |
|
235 | { |
|
236 | $this->payload['maria'] = 0; |
|
237 | $this->payload['database'] = $database; |
|
238 | $this->payload['database_type'] = 'mysql'; |
|
239 | ||
240 | return $this; |
|
241 | } |
|
242 | ||
243 | /** |
|
244 | * Indicates that server should be provisioned with PostrgreSQL. |
|
@@ 250-257 (lines=8) @@ | ||
247 | * |
|
248 | * @return static |
|
249 | */ |
|
250 | public function withPostgres(string $database = 'forge') |
|
251 | { |
|
252 | $this->payload['maria'] = 0; |
|
253 | $this->payload['database'] = $database; |
|
254 | $this->payload['database_type'] = 'postgres'; |
|
255 | ||
256 | return $this; |
|
257 | } |
|
258 | ||
259 | /** |
|
260 | * Indicates that server should be provisioned as load balancer. |