Commit dfa9d5fc by Евгений

поправил миграции

1 parent e92049f3
......@@ -19,7 +19,7 @@ class CreateDictionariesTable extends Migration
$table->bigInteger('parent_id')->nullable();
$table->string('name', 255);
$table->string('type', 255);
$table->bigInteger('token_id')->nullable();
$table->bigInteger('token_id')->nullable()->unsigned();
$table->boolean('update')->default(1);
$table->timestamps();
......
......@@ -21,7 +21,7 @@ class CreateDictionaryCampaignVariablesTable extends Migration
$table->timestamps();
$table->unique(['dictionary_campaign_id', 'variable_id']);
$table->unique(['dictionary_campaign_id', 'variable_id'], 'dictionary_campaign_variables_unique_key');
$table->foreign('dictionary_campaign_id')->references('id')->on('dictionary_campaigns')
->cascadeOnDelete();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!