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,30 @@
<?php
declare(strict_types=1);
namespace Mautic\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Mautic\CoreBundle\Doctrine\AbstractMauticMigration;
final class Version20230927055621 extends AbstractMauticMigration
{
public function up(Schema $schema): void
{
$table = $schema->getTable($this->prefix.'emails');
if (!$table->hasColumn('continue_sending')) {
$this->addSql("ALTER TABLE {$this->prefix}emails ADD `continue_sending` TINYINT(1) DEFAULT 0 NOT NULL");
$this->addSql("UPDATE {$this->prefix}emails SET `continue_sending`= 1 WHERE publish_up IS NOT NULL");
}
}
public function down(Schema $schema): void
{
$table = $schema->getTable($this->prefix.'emails');
if ($table->hasColumn('continue_sending')) {
$this->addSql("ALTER TABLE {$this->prefix}emails DROP continue_sending");
}
}
}