Ahora todos los elementos tienen la opcion de publicarlos mas tarde

This commit is contained in:
Daniel Cortés
2019-10-17 08:38:37 -03:00
parent e67473b3c5
commit 0ccf88d85e
13 changed files with 110 additions and 26 deletions

View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMorePublishedRows extends Migration
{
public function up()
{
Schema::table('now', function (Blueprint $table) {
$table->boolean('is_published')
->after('md')
->default(false);
});
Schema::table('projects', function (Blueprint $table) {
$table->boolean('is_published')
->after('md')
->default(false);
});
Schema::table('setups', function (Blueprint $table) {
$table->boolean('is_published')
->after('md')
->default(false);
});
}
public function down()
{
Schema::table('now', function (Blueprint $table) {
$table->dropColumn('is_published');
});
Schema::table('projects', function (Blueprint $table) {
$table->dropColumn('is_published');
});
Schema::table('setups', function (Blueprint $table) {
$table->dropColumn('is_published');
});
}
}