diff --git a/database/migrations/2024_05_24_095735_modify_notices_table.php b/database/migrations/2024_05_24_095735_modify_notices_table.php new file mode 100644 index 0000000..4dd6d8c --- /dev/null +++ b/database/migrations/2024_05_24_095735_modify_notices_table.php @@ -0,0 +1,29 @@ +integer('notice_id')->unique()->comment('通知id') + ->after('id'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('notices', function (Blueprint $table) { + $table->dropColumn('notice_id'); + }); + } +};