Enable Discovery debug logging for production troubleshooting

- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

View File

@@ -0,0 +1,143 @@
<?php
declare(strict_types=1);
namespace App\Framework\Database\Schema;
/**
* Column definition with fluent modifiers
*/
final class ColumnDefinition
{
public readonly string $type;
public readonly string $name;
public readonly array $parameters;
public bool $nullable = false;
public mixed $default = null;
public bool $hasDefault = false;
public bool $autoIncrement = false;
public bool $unsigned = false;
public bool $unique = false;
public bool $primary = false;
public bool $index = false;
public ?string $comment = null;
public ?string $after = null;
public bool $first = false;
public ?string $charset = null;
public ?string $collation = null;
public function __construct(string $type, string $name, array $parameters = [])
{
$this->type = $type;
$this->name = $name;
$this->parameters = $parameters;
}
/**
* Fluent modifiers
*/
public function nullable(bool $nullable = true): self
{
$this->nullable = $nullable;
return $this;
}
public function default(mixed $value): self
{
$this->default = $value;
$this->hasDefault = true;
return $this;
}
public function useCurrent(): self
{
return $this->default('CURRENT_TIMESTAMP');
}
public function autoIncrement(): self
{
$this->autoIncrement = true;
return $this;
}
public function unsigned(): self
{
$this->unsigned = true;
return $this;
}
public function unique(): self
{
$this->unique = true;
return $this;
}
public function primary(): self
{
$this->primary = true;
return $this;
}
public function index(): self
{
$this->index = true;
return $this;
}
public function comment(string $comment): self
{
$this->comment = $comment;
return $this;
}
public function after(string $column): self
{
$this->after = $column;
return $this;
}
public function first(): self
{
$this->first = true;
return $this;
}
public function charset(string $charset): self
{
$this->charset = $charset;
return $this;
}
public function collation(string $collation): self
{
$this->collation = $collation;
return $this;
}
}