fix Location POST endpoint and saveNewLocation event method in vue_activity Location

This commit is contained in:
2021-10-15 11:22:33 +02:00
parent e6845326d7
commit d0dd99db9a
5 changed files with 68 additions and 16 deletions

View File

@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace Chill\Migrations\Main;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20211015084653 extends AbstractMigration
{
public function getDescription(): string
{
return 'Location entity: change Address to ManyToOne';
}
public function up(Schema $schema): void
{
$this->addSql('DROP INDEX uniq_90e4736af5b7af75');
$this->addSql('CREATE INDEX IDX_90E4736AF5B7AF75 ON chill_main_location (address_id)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX IDX_90E4736AF5B7AF75');
$this->addSql('CREATE UNIQUE INDEX uniq_90e4736af5b7af75 ON chill_main_location (address_id)');
}
}