Ajoute la commande de téléchargement des images

Fix #2
This commit is contained in:
2020-07-23 14:54:02 +02:00
parent 2de65bb4aa
commit 6119e6c6d7
6 changed files with 160 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateHomesImagesDownloaded extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('homes', static function (Blueprint $table) {
$table->boolean('pictures_downloaded')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('homes', static function (Blueprint $table) {
$table->dropColumn('pictures_downloaded');
});
}
}