Files
crowd-fund-api/migrations/Version20261013102811.php
daniel.subiabre b48d4ed6de fix: Allow ProjectRewards shipping (#258)
* 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
2026-10-13 17:55:59 +02:00

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');
}
}