feat: add public column to playlists table

This commit is contained in:
Phan An 2021-04-18 20:30:47 +02:00
parent 871d2e3463
commit 05441f834c
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -0,0 +1,15 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddPublicColumnToPlaylistsTable extends Migration
{
public function up(): void
{
Schema::table('playlists', static function (Blueprint $table): void {
$table->boolean('public')->default(false)->after('rules');
});
}
}