diff --git a/BACKEND/database/migrations/2024_08_06_135632_create_tickets_table.php b/BACKEND/database/migrations/2024_08_06_135632_create_tickets_table.php index 356d41a..409b648 100644 --- a/BACKEND/database/migrations/2024_08_06_135632_create_tickets_table.php +++ b/BACKEND/database/migrations/2024_08_06_135632_create_tickets_table.php @@ -20,7 +20,6 @@ return new class extends Migration $table->string('end_period'); $table->string('type'); $table->string('reason'); - $table->string('status'); $table->string('admin_note')->nullable(); $table->string('updated_by'); $table->timestamps(); diff --git a/BACKEND/database/migrations/2024_08_08_133536_add_column_status_to_tickets_table.php b/BACKEND/database/migrations/2024_08_08_133536_add_column_status_to_tickets_table.php new file mode 100644 index 0000000..09c6664 --- /dev/null +++ b/BACKEND/database/migrations/2024_08_08_133536_add_column_status_to_tickets_table.php @@ -0,0 +1,30 @@ +string('status', 20); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('tickets', function (Blueprint $table) { + // + $table->dropColumn('status'); + }); + } +};