{
public function up(Schema $schema): void
{
- $this->addSql('ALTER TABLE ' . $this->getTable('craue_config_setting') . ' RENAME TO ' . $this->getTable('internal_setting') . ';');
-
if ('mysql' === $this->connection->getDatabasePlatform()->getName()) {
- $this->addSql('ALTER TABLE ' . $this->getTable('internal_setting') . ' CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
+ $this->addSql('ALTER TABLE ' . $this->getTable('craue_config_setting') . ' CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
- $this->addSql('ALTER TABLE ' . $this->getTable('internal_setting') . ' CHANGE `name` `name` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
- $this->addSql('ALTER TABLE ' . $this->getTable('internal_setting') . ' CHANGE `section` `section` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
+ $this->addSql('ALTER TABLE ' . $this->getTable('craue_config_setting') . ' CHANGE `name` `name` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
+ $this->addSql('ALTER TABLE ' . $this->getTable('craue_config_setting') . ' CHANGE `section` `section` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
}
}
public function down(Schema $schema): void
{
- $this->addSql('ALTER TABLE ' . $this->getTable('internal_setting') . ' RENAME TO ' . $this->getTable('craue_config_setting') . ';');
-
if ('mysql' === $this->connection->getDatabasePlatform()->getName()) {
$this->addSql('ALTER TABLE ' . $this->getTable('craue_config_setting') . ' CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;');
+++ /dev/null
-<?php
-
-namespace Wallabag\CoreBundle\Entity;
-
-use Craue\ConfigBundle\Entity\BaseSetting;
-use Doctrine\ORM\Mapping as ORM;
-
-/**
- * Internal Setting.
- *
- * @ORM\Entity(repositoryClass="Craue\ConfigBundle\Repository\SettingRepository")
- * @ORM\Table(name="internal_setting")
- * @ORM\AttributeOverrides({
- * @ORM\AttributeOverride(name="name",
- * column=@ORM\Column(
- * name = "name",
- * length = 191
- * )
- * ),
- * @ORM\AttributeOverride(name="section",
- * column=@ORM\Column(
- * name = "section",
- * length = 191
- * )
- * )
- * })
- */
-class InternalSetting extends BaseSetting
-{
- /**
- * @var string|null
- *
- * @ORM\Column(name="value", type="string", nullable=true, length=191)
- */
- protected $value;
-}