diff --git a/db/migrations/20221121043856_add_status_to_tickets_table.php b/db/migrations/20221121043856_add_status_to_tickets_table.php new file mode 100644 index 0000000..2e18c29 --- /dev/null +++ b/db/migrations/20221121043856_add_status_to_tickets_table.php @@ -0,0 +1,25 @@ +table('tickets'); + $table->addColumn('status', 'string', ['null' => false, 'default' => 'open']) + ->update(); + } +} diff --git a/views/ticket/view.twig b/views/ticket/view.twig index 201e29b..942f448 100644 --- a/views/ticket/view.twig +++ b/views/ticket/view.twig @@ -6,6 +6,7 @@

{{ ticket.title }}

+

Status: {{ ticket.status }}

Created at {{ ticket.created_at }} | Last updated at {{ ticket.updated_at }}