38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
return new class extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::table('templates', function (Blueprint $table) {
|
||
|
$table->boolean('publicly_listed')->default(false);
|
||
|
$table->jsonb('industries')->default('[]');
|
||
|
$table->jsonb('types')->default('[]');
|
||
|
$table->string('short_description')->nullable();
|
||
|
$table->jsonb('related_templates')->default('[]');
|
||
|
$table->string('image_url',500)->nullable()->change();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::table('templates', function (Blueprint $table) {
|
||
|
$table->dropColumn(['publicly_listed', 'industries', 'types', 'short_description', 'related_templates']);
|
||
|
});
|
||
|
}
|
||
|
};
|