diff --git a/dev_db/mysql.sql b/dev_db/mysql.sql index ab95f4b83..576d80f9e 100644 --- a/dev_db/mysql.sql +++ b/dev_db/mysql.sql @@ -447,17 +447,17 @@ CREATE TABLE `article` ( `lager_file_file` varchar(255) NOT NULL, `lager_file_preview` varchar(255) NOT NULL, `preis` float DEFAULT NULL, - `upload_article` int(1) NOT NULL, + `upload_article` int(1) NULL DEFAULT 0, `upload_article_status` int(4) DEFAULT NULL, - `upload_center` int(1) NOT NULL, + `upload_center` int(1) NULL DEFAULT 0, `upload_center_status` int(4) DEFAULT NULL, - `upload_post` int(1) NOT NULL, + `upload_post` int(1) NULL DEFAULT 0, `upload_post_status` int(4) DEFAULT NULL, - `upload_email` int(1) NOT NULL, + `upload_email` int(1) NULL DEFAULT 0, `upload_email_status` int(4) DEFAULT NULL, `vorlage_file` varchar(255) DEFAULT NULL, `vorlage_info` text DEFAULT NULL, - `upload_weblayouter` int(1) NOT NULL, + `upload_weblayouter` int(1) NULL DEFAULT 0, `upload_weblayouter_status` int(4) NOT NULL, `not_edit` int(1) NOT NULL, `custom_1_title` varchar(255) DEFAULT NULL, diff --git a/src/new/src/PSC/System/UpdateBundle/Migrations/Version20250303120812.php b/src/new/src/PSC/System/UpdateBundle/Migrations/Version20250303120812.php new file mode 100644 index 000000000..a79c0019d --- /dev/null +++ b/src/new/src/PSC/System/UpdateBundle/Migrations/Version20250303120812.php @@ -0,0 +1,26 @@ + + * @copyright 2012-2013 PrintshopCreator GmbH + * @license Private + * @link http://www.printshopcreator.de + */ + +namespace PSC\System\UpdateBundle\Migrations; + +class Version20250303120812 extends Base +{ + public function migrateDatabase() + { + $this->entityManager->getConnection()->exec("ALTER TABLE article MODIFY upload_article int(1) null default 0"); + $this->entityManager->getConnection()->exec("ALTER TABLE article MODIFY upload_post int(1) null default 0"); + $this->entityManager->getConnection()->exec("ALTER TABLE article MODIFY upload_email int(1) null default 0"); + $this->entityManager->getConnection()->exec("ALTER TABLE article MODIFY upload_center int(1) null default 0"); + $this->entityManager->getConnection()->exec("ALTER TABLE article MODIFY upload_weblayouter int(1) null default 0"); + } +} diff --git a/src/new/tests/RefreshDatabaseTrait.php b/src/new/tests/RefreshDatabaseTrait.php index 6449aeab5..b4b68f470 100755 --- a/src/new/tests/RefreshDatabaseTrait.php +++ b/src/new/tests/RefreshDatabaseTrait.php @@ -37,12 +37,12 @@ trait RefreshDatabaseTrait $container = static::$kernel->getContainer(); /** - * @var EntityManagerInterface $doc + * @var EntityManagerInterface $doc */ $em = $container->get('doctrine.orm.entity_manager'); /** - * @var DocumentManager $doc + * @var DocumentManager $doc */ $doc = $container->get('doctrine_mongodb.odm.document_manager'); @@ -113,7 +113,6 @@ trait RefreshDatabaseTrait $shop->setCancelationNumberPattern('SST-{{ "now"|date("Ym") }}-{{number}}'); $shop->setParcelCancelationNumberPattern('STS-{{ "now"|date("Ym") }}-{{number}}'); $shop->setParcelInvoiceNumberPattern('STR-{{ "now"|date("Ym") }}-{{number}}'); - $shop->setCalcTemplate(""); $shop->setSenderZip(12345); $shop->setSenderCity("ShopMusterOrt"); $shop->setSenderCompany("ShopMusterCompany"); diff --git a/src/new/tests/mysql.sql b/src/new/tests/mysql.sql index 680398067..291b14b50 100644 --- a/src/new/tests/mysql.sql +++ b/src/new/tests/mysql.sql @@ -343,17 +343,17 @@ CREATE TABLE `article` ( `lager_file_file` varchar(255) NOT NULL, `lager_file_preview` varchar(255) NOT NULL, `preis` float DEFAULT NULL, - `upload_article` int(1) NOT NULL, + `upload_article` int(1) NULL DEFAULT 0, `upload_article_status` int(4) DEFAULT NULL, - `upload_center` int(1) NOT NULL, + `upload_center` int(1) NULL DEFAULT 0, `upload_center_status` int(4) DEFAULT NULL, - `upload_post` int(1) NOT NULL, + `upload_post` int(1) NULL DEFAULT 0, `upload_post_status` int(4) DEFAULT NULL, - `upload_email` int(1) NOT NULL, + `upload_email` int(1) NULL DEFAULT 0, `upload_email_status` int(4) DEFAULT NULL, `vorlage_file` varchar(255) DEFAULT NULL, `vorlage_info` text DEFAULT NULL, - `upload_weblayouter` int(1) NOT NULL, + `upload_weblayouter` int(1) NULL DEFAULT 0, `upload_weblayouter_status` int(4) NOT NULL, `not_edit` int(1) NOT NULL, `custom_1_title` varchar(255) DEFAULT NULL,