From 550bdd824904ac967a9c7cb339303636b512c7d0 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 22 Apr 2024 18:26:33 +1000 Subject: [PATCH] make timestamps nullable --- .../2024_04_05_091945_create_workshops_table.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/database/migrations/2024_04_05_091945_create_workshops_table.php b/database/migrations/2024_04_05_091945_create_workshops_table.php index 0ce56fd..6f272ce 100644 --- a/database/migrations/2024_04_05_091945_create_workshops_table.php +++ b/database/migrations/2024_04_05_091945_create_workshops_table.php @@ -16,10 +16,10 @@ return new class extends Migration $table->string('title'); $table->string('hero_media_name'); $table->text('content'); - $table->timestamp('starts_at'); - $table->timestamp('ends_at'); - $table->timestamp('publish_at'); - $table->timestamp('closes_at'); + $table->timestamp('starts_at')->nullable(); + $table->timestamp('ends_at')->nullable(); + $table->timestamp('publish_at')->nullable(); + $table->timestamp('closes_at')->nullable(); $table->string('status')->default('draft'); $table->string('price')->nullable(); $table->string('ages')->nullable();