Merge branch 'develop' into trunk
This commit is contained in:
commit
c87c7bbbf9
1 changed files with 7 additions and 5 deletions
|
|
@ -15,11 +15,13 @@ return new class extends Migration
|
|||
public function up(): void
|
||||
{
|
||||
DB::transaction(function () {
|
||||
// Remove block id '29' of section 26
|
||||
DB::table('blocks')->where([
|
||||
'id' => 29,
|
||||
'section_id' => 26
|
||||
])->delete();
|
||||
DB::table('blocks')
|
||||
->whereIn('section_id', function ($query) {
|
||||
$query->select('section_id')
|
||||
->from('section_pages')
|
||||
->where('page_id', 12);
|
||||
})
|
||||
->delete();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue