@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | public string $comment = ''; |
| 30 | 30 | |
| 31 | - public int|string|Expression|null $default; |
|
| 31 | + public int | string | Expression | null $default; |
|
| 32 | 32 | |
| 33 | 33 | public bool $nullable = false; |
| 34 | 34 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @return $this |
| 60 | 60 | */ |
| 61 | - public function default(int|string|Expression|null $default): static |
|
| 61 | + public function default(int | string | Expression | null $default): static |
|
| 62 | 62 | { |
| 63 | 63 | $this->default = $default; |
| 64 | 64 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * @return int|string|Expression|null |
| 102 | 102 | */ |
| 103 | - public function getDefault(): int|string|Expression|null |
|
| 103 | + public function getDefault(): int | string | Expression | null |
|
| 104 | 104 | { |
| 105 | 105 | return $this->default; |
| 106 | 106 | } |
@@ -128,11 +128,11 @@ discard block |
||
| 128 | 128 | ]); |
| 129 | 129 | |
| 130 | 130 | $block_setting = Schema::table('block_setting', [ |
| 131 | - Schema::integer('block_id')->autoIncrement(), |
|
| 132 | - Schema::varchar('setting_name', 32), |
|
| 133 | - Schema::text('setting_value'), |
|
| 134 | - Schema::primaryKey(['block_id', 'setting_name']), |
|
| 135 | - Schema::foreignKey(['block_id'], 'block', ['block_id'])->onUpdate(ReferentialAction::CASCADE)->onDelete(ReferentialAction::CASCADE), |
|
| 131 | + Schema::integer('block_id')->autoIncrement(), |
|
| 132 | + Schema::varchar('setting_name', 32), |
|
| 133 | + Schema::text('setting_value'), |
|
| 134 | + Schema::primaryKey(['block_id', 'setting_name']), |
|
| 135 | + Schema::foreignKey(['block_id'], 'block', ['block_id'])->onUpdate(ReferentialAction::CASCADE)->onDelete(ReferentialAction::CASCADE), |
|
| 136 | 136 | ]); |
| 137 | 137 | |
| 138 | 138 | $change = Schema::table('change', [ |
@@ -487,7 +487,7 @@ discard block |
||
| 487 | 487 | ->getDatabasePlatform() |
| 488 | 488 | ->getAlterSchemaSQL($schema_diff); |
| 489 | 489 | |
| 490 | - function f(string $query): int { |
|
| 490 | + function f(string $query): int { |
|
| 491 | 491 | if (str_contains($query, 'DROP FOREIGN KEY')) { |
| 492 | 492 | return 1; |
| 493 | 493 | } |