UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_d0cee25f75c1
/
database
/
seeds
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
FixEndCourseDuration.php
<?php use Illuminate\Database\Seeder; /** * Class FixEndCourseDuration */ class FixEndCourseDuration extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->command->info('Ajustando data de término dos cursos!'); //$query = "UPDATE hirings INNER JOIN plans ON hirings.plan_id = plans.id INNER JOIN durations ON plans.duration_id = durations.id SET end = concat(date(DATE_ADD(start, INTERVAL +duration MONTH)), ' 23:59:59') WHERE status IN (1, 2, 3, 4);"; $query = "UPDATE hirings INNER JOIN plans ON hirings.plan_id = plans.id INNER JOIN durations ON plans.duration_id = durations.id SET end = concat(date(DATE_ADD(start, INTERVAL +duration MONTH)), ' 23:59:59') WHERE hirings.created_at >= '2021-03-11 00:00:00' AND status IN (1, 2, 3, 4) AND gateway_id = 'PagSeguro';"; \DB::statement($query); $query = "UPDATE hired_courses INNER JOIN plans ON hired_courses.plan_id = plans.id INNER JOIN durations ON plans.duration_id = durations.id SET end = concat(date(DATE_ADD(start, INTERVAL +duration MONTH)), ' 23:59:59') WHERE hirings_id IN (SELECT id FROM hirings WHERE status IN(1, 2, 3, 4) AND gateway_id = 'PagSeguro') AND hired_courses.created_at >= '2021-03-11 00:00:00';"; \DB::statement($query); $this->command->info('Data de término dos cursos, ajustada!'); } }
Copyright © 2026 - UnknownSec