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 5d3ba19e
authored
Nov 30, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#21104 Перенос проекта в продакшн
1 parent
9b66d52c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
database/migrations/2021_11_30_122319_add_index.php
database/migrations/2021_11_30_122319_add_index.php
0 → 100644
View file @
5d3ba19
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddIndex
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'goal_ad_groups'
,
function
(
Blueprint
$table
)
{
$table
->
index
(
'external_id'
);
$table
->
index
(
'updated_need'
);
$table
->
index
(
'updated_self'
);
$table
->
index
(
'reserve_create_at'
);
$table
->
index
(
'reserve_update_at'
);
$table
->
index
(
'deleted_at'
);
});
Schema
::
table
(
'ad_groups'
,
function
(
Blueprint
$table
)
{
// $table->index('deleted_at');
});
Schema
::
table
(
'keywords'
,
function
(
Blueprint
$table
)
{
$table
->
index
(
'deleted_at'
);
});
Schema
::
table
(
'bid_modifiers'
,
function
(
Blueprint
$table
)
{
$table
->
index
(
'deleted_at'
);
});
Schema
::
table
(
'advertisements'
,
function
(
Blueprint
$table
)
{
$table
->
index
(
'deleted_at'
);
});
Schema
::
table
(
'dictionary_campaigns'
,
function
(
Blueprint
$table
)
{
$table
->
index
(
'external_id'
);
$table
->
index
(
'enabled'
);
$table
->
index
(
'synced'
);
$table
->
index
(
'updated'
);
$table
->
index
(
'deleted_at'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
//
}
}
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