isSqlite()) { // SQLite bootstraps settings in Version20251127235840. return; } if ($schema->hasTable('settings')) { return; } $this->addSql('CREATE TABLE settings (id SERIAL NOT NULL, name VARCHAR(100) NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id))'); $this->addSql('CREATE UNIQUE INDEX uniq_setting_name ON settings (name)'); } public function down(Schema $schema): void { if ($this->isSqlite()) { return; } $this->addSql('DROP TABLE settings'); } private function isSqlite(): bool { return $this->connection->getDatabasePlatform()->getName() === 'sqlite'; } }