2021_06_29_131245_add_reserve_columns.php 1.45 KB
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddReserveColumns extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('dictionary_campaigns', function (Blueprint $table) {
            $table->timestamp('reserve_create_at')->nullable();
            $table->timestamp('reserve_update_at')->nullable();
            $table->timestamp('reserve_resume_at')->nullable();
            $table->timestamp('reserve_suspend_at')->nullable();
        });

        Schema::table('goal_ad_groups', function (Blueprint $table) {
            $table->timestamp('reserve_create_at')->nullable();
            $table->timestamp('reserve_update_at')->nullable();
        });

        Schema::table('goal_bid_modifiers', function (Blueprint $table) {
            $table->timestamp('reserve_create_at')->nullable();
        });

        Schema::table('goal_advertisements', function (Blueprint $table) {
            $table->timestamp('reserve_create_at')->nullable();
            $table->timestamp('reserve_update_at')->nullable();
        });

        Schema::table('goal_keywords', function (Blueprint $table) {
            $table->timestamp('reserve_update_at')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}