From b12be847df078ceec18fa8c43d6893dfeeaf6248 Mon Sep 17 00:00:00 2001 From: zhouchangcheng Date: Fri, 24 May 2024 18:16:55 +0800 Subject: [PATCH] modify table --- ...2024_05_24_095735_modify_notices_table.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/migrations/2024_05_24_095735_modify_notices_table.php 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'); + }); + } +};