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:
@@ -1,17 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Domain\User\Migrations;
|
||||
|
||||
use App\Framework\Database\ConnectionInterface;
|
||||
use App\Framework\Database\Migration\Migration;
|
||||
use App\Framework\Database\Migration\MigrationVersion;
|
||||
|
||||
final readonly class CreateUsersTable implements Migration
|
||||
{
|
||||
|
||||
public function up(ConnectionInterface $connection): void
|
||||
{
|
||||
$connection->query("CREATE TABLE IF NOT EXISTS users (
|
||||
$connection->query(
|
||||
"CREATE TABLE IF NOT EXISTS users (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
ulid BINARY(16) NOT NULL UNIQUE,
|
||||
name VARCHAR(255) NOT NULL
|
||||
@@ -24,9 +26,9 @@ final readonly class CreateUsersTable implements Migration
|
||||
$connection->query("DROP TABLE users");
|
||||
}
|
||||
|
||||
public function getVersion(): string
|
||||
public function getVersion(): MigrationVersion
|
||||
{
|
||||
return "001";
|
||||
return MigrationVersion::fromTimestamp("2024_01_15_000001");
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Domain\User;
|
||||
|
||||
use App\Framework\Database\Attributes\Column;
|
||||
@@ -11,7 +13,6 @@ final readonly class User
|
||||
public function __construct(
|
||||
#[Column(name: 'id', primary: true)]
|
||||
public string $id,
|
||||
|
||||
#[Column(name: 'name')]
|
||||
public string $name,
|
||||
|
||||
@@ -19,5 +20,6 @@ final readonly class User
|
||||
|
||||
/*#[Column(name: 'email')]
|
||||
public string $email*/
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user