Merge pull request #188 from goteo/fix/update_project_video_schema
fix: update ProjectVideo schema
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user