From f4ddee3ce9d2e25733addb02e5295fd17ad34e21 Mon Sep 17 00:00:00 2001 From: Vladislav Khr Date: Sun, 16 Aug 2020 19:47:26 +0300 Subject: [PATCH] Create 2020_08_16_184956_fix_last_sync_fastdl_servers_table.php https://github.com/gameap/fastdl-module/issues/2 --- ...956_fix_last_sync_fastdl_servers_table.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Database/Migrations/2020_08_16_184956_fix_last_sync_fastdl_servers_table.php diff --git a/Database/Migrations/2020_08_16_184956_fix_last_sync_fastdl_servers_table.php b/Database/Migrations/2020_08_16_184956_fix_last_sync_fastdl_servers_table.php new file mode 100644 index 0000000..349b662 --- /dev/null +++ b/Database/Migrations/2020_08_16_184956_fix_last_sync_fastdl_servers_table.php @@ -0,0 +1,40 @@ +dropColumn('last_sync'); + }); + + Schema::table('fastdl_servers', function (Blueprint $table) { + $table->timestamp('last_sync')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('fastdl_servers', function (Blueprint $table) { + $table->dropColumn('last_sync'); + }); + + Schema::table('fastdl_servers', function (Blueprint $table) { + $table->timestamp('last_sync'); + }); + } +}