diff --git a/.gitignore b/.gitignore index 269d32a..3e7ec8e 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,3 @@ yarn-error.log /docs/API /docs/*.xlsx /docs/pptx - - diff --git a/database/migrations/2026_04_16_174321_add_status_to_machines_table.php b/database/migrations/2026_04_16_174321_add_status_to_machines_table.php new file mode 100644 index 0000000..65e7f25 --- /dev/null +++ b/database/migrations/2026_04_16_174321_add_status_to_machines_table.php @@ -0,0 +1,28 @@ +string('status')->default('offline')->after('location')->comment('機台狀態: online, offline, error'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('machines', function (Blueprint $table) { + $table->dropColumn('status'); + }); + } +};