Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dfa9d5fc
authored
May 21, 2021
by
Евгений
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
поправил миграции
1 parent
e92049f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
database/migrations/2021_05_11_094828_create_dictionaries_table.php
database/migrations/2021_05_17_151448_create_dictionary_campaign_variables_table.php
database/migrations/2021_05_11_094828_create_dictionaries_table.php
View file @
dfa9d5f
...
...
@@ -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
();
...
...
database/migrations/2021_05_17_151448_create_dictionary_campaign_variables_table.php
View file @
dfa9d5f
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment