@@ -97,11 +97,11 @@ |
||
| 97 | 97 | ]); |
| 98 | 98 | |
| 99 | 99 | $block_setting = Schema::table('block_setting', [ |
| 100 | - Schema::integer('block_id'), |
|
| 101 | - Schema::varchar('setting_name', 32), |
|
| 102 | - Schema::text('setting_value'), |
|
| 103 | - Schema::primaryKey(['block_id', 'setting_name']), |
|
| 104 | - Schema::foreignKey('block_id', 'block')->onDeleteCascade()->onUpdateCascade(), |
|
| 100 | + Schema::integer('block_id'), |
|
| 101 | + Schema::varchar('setting_name', 32), |
|
| 102 | + Schema::text('setting_value'), |
|
| 103 | + Schema::primaryKey(['block_id', 'setting_name']), |
|
| 104 | + Schema::foreignKey('block_id', 'block')->onDeleteCascade()->onUpdateCascade(), |
|
| 105 | 105 | ]); |
| 106 | 106 | |
| 107 | 107 | $change = Schema::table('change', [ |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | public string $comment = ''; |
| 30 | 30 | |
| 31 | - public int|string|Expression|null $default = null; |
|
| 31 | + public int | string | Expression | null $default = null; |
|
| 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|float|string|Expression|null $default): static |
|
| 61 | + public function default(int | float | 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 | } |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | * |
| 409 | 409 | * @return PrimaryKey |
| 410 | 410 | */ |
| 411 | - public static function primaryKey(string|array $columns, string $name = ''): PrimaryKey |
|
| 411 | + public static function primaryKey(string | array $columns, string $name = ''): PrimaryKey |
|
| 412 | 412 | { |
| 413 | 413 | return new PrimaryKey(name: $name, columns: (array) $columns); |
| 414 | 414 | } |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | * |
| 420 | 420 | * @return Index |
| 421 | 421 | */ |
| 422 | - public static function index(string|array $columns, string $name = ''): Index |
|
| 422 | + public static function index(string | array $columns, string $name = ''): Index |
|
| 423 | 423 | { |
| 424 | 424 | return new Index(name: $name, columns: (array) $columns); |
| 425 | 425 | } |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | * |
| 431 | 431 | * @return UniqueIndex |
| 432 | 432 | */ |
| 433 | - public static function uniqueIndex(string|array $columns, string $name = ''): UniqueIndex |
|
| 433 | + public static function uniqueIndex(string | array $columns, string $name = ''): UniqueIndex |
|
| 434 | 434 | { |
| 435 | 435 | return new UniqueIndex(name: $name, columns: (array) $columns); |
| 436 | 436 | } |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | * |
| 443 | 443 | * @return ForeignKey |
| 444 | 444 | */ |
| 445 | - public static function foreignKey(string|array $local_columns, string $foreign_table, string|array $foreign_columns = null): ForeignKey |
|
| 445 | + public static function foreignKey(string | array $local_columns, string $foreign_table, string | array $foreign_columns = null): ForeignKey |
|
| 446 | 446 | { |
| 447 | 447 | // If the foreign columns have the same name, we don't need to specify them. |
| 448 | 448 | $foreign_columns ??= $local_columns; |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | public function introspectSchema(string $schema_name = null): Schema |
| 82 | 82 | { |
| 83 | - $schema_name ??= $this->query(sql: 'SELECT DATABASE() AS schema_name')[0]->schema_name; |
|
| 83 | + $schema_name ??= $this->query(sql: 'SELECT DATABASE() AS schema_name')[0]->schema_name; |
|
| 84 | 84 | $pattern = $this->escapeLike(string: $this->prefix) . '%'; |
| 85 | 85 | $table_data = $this->informationSchemaTables(schema_name: $schema_name, pattern: $pattern); |
| 86 | 86 | $column_data = $this->informationSchemaColumns(schema_name: $schema_name, pattern: $pattern); |