Commit 39534691 by Vladislav

fix migration

1 parent 7dead511
......@@ -16,7 +16,7 @@ class CreateKeywordsTable extends Migration
{
if (Schema::hasTable('goal_ad_groups') && Schema::hasColumn('goal_ad_groups', 'campaign_external_id')) {
Schema::create('goal_ad_groups', function (Blueprint $table) {
Schema::table('goal_ad_groups', function (Blueprint $table) {
$table->renameColumn('campaign_external_id', 'dictionary_campaign_external_id');
});
......@@ -24,7 +24,7 @@ class CreateKeywordsTable extends Migration
if (Schema::hasTable('ad_groups') && !Schema::hasColumn('ad_groups', 'keywords_loaded_at')) {
Schema::create('ad_groups', function (Blueprint $table) {
Schema::table('ad_groups', function (Blueprint $table) {
$table->timestamp('keywords_loaded_at')->nullable();
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!