From dd4f49bbadd2ec6eb3cc867c7d532db480e0b1b0 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 20 Jan 2024 16:35:42 +0900 Subject: [PATCH] Fix #7 Fix create table error --- var/phinx/migrations/20210520124501_ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/phinx/migrations/20210520124501_ticket.php b/var/phinx/migrations/20210520124501_ticket.php index 6b22f70..3901649 100644 --- a/var/phinx/migrations/20210520124501_ticket.php +++ b/var/phinx/migrations/20210520124501_ticket.php @@ -8,7 +8,7 @@ final class Ticket extends AbstractMigration public function change(): void { $table = $this->table('ticket', ['id' => false, 'primary_key' => ['id']]); - $table->addColumn('id', 'uuid') + $table->addColumn('id', 'uuid', ['null' => false]) ->addColumn('title', 'string') ->addColumn('dateCreated', 'datetime') ->create();