From 9233cd8f5b27f36c528dd97c35068081b8d9ae47 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 11 Jul 2023 02:27:08 -0600 Subject: [PATCH] Add migration --- ...40_add_show_reblogs_to_followers_table.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2023_07_11_080040_add_show_reblogs_to_followers_table.php diff --git a/database/migrations/2023_07_11_080040_add_show_reblogs_to_followers_table.php b/database/migrations/2023_07_11_080040_add_show_reblogs_to_followers_table.php new file mode 100644 index 000000000..d84433747 --- /dev/null +++ b/database/migrations/2023_07_11_080040_add_show_reblogs_to_followers_table.php @@ -0,0 +1,30 @@ +boolean('show_reblogs')->default(true)->index()->after('local_following'); + $table->boolean('notify')->default(false)->index()->after('show_reblogs'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('followers', function (Blueprint $table) { + $table->dropColumn('show_reblogs'); + $table->dropColumn('notify'); + }); + } +};