Initial commit: CloudOps infrastructure platform

This commit is contained in:
root
2026-04-09 19:58:57 +02:00
commit 1166a52f26
7762 changed files with 839452 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Mautic\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\SkipMigration;
use Mautic\CoreBundle\Doctrine\AbstractMauticMigration;
final class Version20201007003589 extends AbstractMauticMigration
{
public function preUp(Schema $schema): void
{
if ($schema->getTable($this->prefix.'lead_fields')->hasColumn('column_is_not_removed')) {
throw new SkipMigration('Schema does not need this migration');
}
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE {$this->prefix}lead_fields ADD column_is_not_removed TINYINT(1) NOT NULL DEFAULT 0");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE {$this->prefix}lead_fields DROP column_is_not_removed");
}
}