Ajoute les liens publics

This commit is contained in:
2020-07-24 13:11:21 +02:00
parent 2decec3fab
commit b349420bec
7 changed files with 152 additions and 5 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateHomesWithPublicUuid extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('homes', static function (Blueprint $table) {
$table->string('slug')->nullable()->comment('Uuid for public link');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('homes', static function (Blueprint $table) {
$table->dropColumn('slug');
});
}
}