Merge pull request #188 from goteo/fix/update_project_video_schema

fix: update ProjectVideo schema
This commit is contained in:
2026-02-06 14:32:03 +01:00
committed by GitHub
3 changed files with 30 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260206121101 extends AbstractMigration
{
public function getDescription(): string
{
return 'Adds video_cover column';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE project ADD video_cover VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE project DROP video_cover');
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ class UserService
$nval = \strtolower($value);
// If email remove provider
$nval = \preg_replace('/@.*[\.-](com|net|org|es)/', '', $nval);
$nval = preg_replace('/@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/', '', $nval);
// Replace known subs
$nval = \str_replace(['&', '@', 'ñ', '=', '≠'], ['and', 'at', 'nn', 'eq', 'nq'], $nval);
@@ -17,6 +17,9 @@ final class SingleRewardClaimPerCharge extends Constraint
parent::__construct([], $groups, $payload);
}
/**
* @return string
*/
public function getTargets()
{
return self::CLASS_CONSTRAINT;