<?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 Version20230124104030 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('UPDATE record SET voice = REPLACE(voice, "/mnt/ftp/PowerVoice/voice/", "record-audio/") WHERE voice IS NOT NULL');
$this->addSql('UPDATE scenario SET voice1 = REPLACE(voice1, "/mnt/ftp/PowerVoice/scenario/", "scenario-audio/") WHERE voice1 IS NOT NULL');
$this->addSql('UPDATE scenario SET voice2 = REPLACE(voice2, "/mnt/ftp/PowerVoice/scenario/", "scenario-audio/") WHERE voice2 IS NOT NULL');
$this->addSql('UPDATE resource SET sample = REPLACE(sample, "/mnt/ftp/PowerVoice/voice/sample/", "sample-audio/") WHERE sample IS NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('UPDATE record SET voice = REPLACE(voice, "record-audio/", "/mnt/ftp/PowerVoice/voice/") WHERE voice IS NOT NULL');
$this->addSql('UPDATE scenario SET voice1 = REPLACE(voice1, "scenario-audio/", "/mnt/ftp/PowerVoice/scenario/") WHERE voice1 IS NOT NULL');
$this->addSql('UPDATE scenario SET voice2 = REPLACE(voice2, "scenario-audio/", "/mnt/ftp/PowerVoice/scenario/") WHERE voice2 IS NOT NULL');
$this->addSql('UPDATE resource SET sample = REPLACE(sample, "sample-audio/", "/mnt/ftp/PowerVoice/voice/sample/") WHERE sample IS NOT NULL');
// this down() migration is auto-generated, please modify it to your needs
}
}