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 7fd5e794
authored
Jul 08, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19498 Снхронизация объявлений с целевыми
1 parent
981f5da8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Console/Commands/AdvertisementsUpdate.php
app/Console/Commands/AdvertisementsUpdate.php
View file @
7fd5e79
...
@@ -51,7 +51,7 @@ class AdvertisementsUpdate extends Command
...
@@ -51,7 +51,7 @@ class AdvertisementsUpdate extends Command
$goalAds
=
DB
::
table
(
'goal_advertisements'
)
$goalAds
=
DB
::
table
(
'goal_advertisements'
)
->
join
(
'advertisements'
,
'goal_advertisements.advertisement_id'
,
'='
,
'advertisements.id'
)
->
join
(
'advertisements'
,
'goal_advertisements.advertisement_id'
,
'='
,
'advertisements.id'
)
->
leftJoin
(
'goal_advertisement_goal_ad_extensions'
,
'goal_advertisements.id'
,
'='
,
'goal_advertisement_goal_ad_extensions.goal_advertisement_id'
)
->
leftJoin
(
'goal_advertisement_goal_ad_extensions'
,
'goal_advertisements.id'
,
'='
,
'goal_advertisement_goal_ad_extensions.goal_advertisement_id'
)
->
leftJoin
(
'goal_ad_extensions'
,
'goal_advertisement
s.id'
,
'='
,
'goal_ad_extensions.goal_ad_extension_
id'
)
->
leftJoin
(
'goal_ad_extensions'
,
'goal_advertisement
_goal_ad_extensions.goal_ad_extension_id'
,
'='
,
'goal_ad_extensions.
id'
)
->
whereNotExists
(
function
(
Builder
$query
)
{
->
whereNotExists
(
function
(
Builder
$query
)
{
$query
->
select
(
DB
::
raw
(
1
))
$query
->
select
(
DB
::
raw
(
1
))
->
from
(
'goal_advertisement_goal_ad_extensions'
)
->
from
(
'goal_advertisement_goal_ad_extensions'
)
...
...
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