<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200810041451 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$mobilesHuerta = [ 5, 6, 7 ];
$mobilesSanJuan = [ 1, 2, 3 ];
// huerta: -59.084636 -34.481763
// larrea: -58.615094 -34.646493
// san juan: -58.386109 -34.622202
// alfonsina storni: -58.392511 -34.878747
// movil 1 (huerta -> larrea 259 Moron)
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(1, 2, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-58.615094 -34.646493)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(1, 3, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-58.615094 -34.646493)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(1, 4, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-58.615094 -34.646493)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(1, 5, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-58.615094 -34.646493)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(1, 6, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-58.615094 -34.646493)\'))');
// movil 2 (san juan -> Alfonsina Storni 2166 Glew)
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(2, 2, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.392511 -34.878747)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(2, 3, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(2, 4, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(2, 5, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.392511 -34.878747)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(2, 6, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
// movil 3 (san juan -> san juan)
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(3, 2, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(3, 3, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(3, 4, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(3, 5, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(3, 6, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
// movil 5 (san juan -> Primera junta 2340 Villa Libertad) excepto martes
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(5, 1, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(5, 2, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(5, 3, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(5, 4, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(5, 5, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
// movil 6 (huerta -> huerta)
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(6, 3, \'08:00:00\', \'14:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'))');
// movil 7 (san juan -> san juan)
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(7, 1, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-59.084636 -34.481763)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
$this->addSql('INSERT INTO vehicle_work_schedule(vehicle_id, `day`, `start`, `end`, start_location, end_location) ' .
'VALUES(7, 3, \'08:00:00\', \'20:00:00\', ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'), ST_GeomFromText(\'POINT(-58.386109 -34.622202)\'))');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DELETE FROM vehicle_work_schedule');
}
}