* feat: add security to avoid exposing addresses to all users * feat: add hasShipping to ProjectReward resources * feat: split Address write from read API shapes * fix: bad management of address input * feat: pump reward hasShipping based on units * fix: improve empty v3 address pumping * fix: process country of v3 invest_address records
27 lines
608 B
PHP
27 lines
608 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DoctrineMigrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
final class Version20261013102811 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'Adds has_shipping column to project_reward table';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE project_reward ADD has_shipping TINYINT(1) NOT NULL');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE project_reward DROP has_shipping');
|
|
}
|
|
}
|