Skip to content

Commit 84099e7

Browse files
committed
AC-6921:Fixed Integraion and static tests related to maridb10.6 support
1 parent c7e2b03 commit 84099e7

File tree

7 files changed

+22
-14
lines changed

7 files changed

+22
-14
lines changed

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule1/fixture/declarative_installer/constraint_modification.mariadb106.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
// @codingStandardsIgnoreFile
79
return [
810
'auto_increment_test' => 'CREATE TABLE `auto_increment_test` (
911
`int_auto_increment_with_nullable` int(10) unsigned NOT NULL AUTO_INCREMENT,
1012
`int_disabled_auto_increment` smallint(5) unsigned DEFAULT 0,
1113
UNIQUE KEY `AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE` (`int_auto_increment_with_nullable`)
12-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
14+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
1315
'reference_table' => 'CREATE TABLE `reference_table` (
1416
`tinyint_ref` tinyint(4) NOT NULL AUTO_INCREMENT,
1517
`tinyint_without_padding` tinyint(4) NOT NULL DEFAULT 0,
@@ -25,7 +27,7 @@
2527
`smallint_ref` smallint(6) NOT NULL DEFAULT 0,
2628
PRIMARY KEY (`tinyint_ref`,`smallint_ref`),
2729
UNIQUE KEY `REFERENCE_TABLE_SMALLINT_REF` (`smallint_ref`)
28-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
30+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
2931
'test_table' => 'CREATE TABLE `test_table` (
3032
`smallint` smallint(6) DEFAULT NULL,
3133
`tinyint` tinyint(4) DEFAULT NULL,
@@ -53,5 +55,5 @@
5355
CONSTRAINT `FK_FB77604C299EB8612D01E4AF8D9931F2` FOREIGN KEY (`integer_main`) REFERENCES `auto_increment_test` (`int_auto_increment_with_nullable`) ON DELETE CASCADE,
5456
CONSTRAINT `TEST_TABLE_SMALLINT_MAIN_REFERENCE_TABLE_SMALLINT_REF` FOREIGN KEY (`smallint_main`) REFERENCES `reference_table` (`smallint_ref`) ON DELETE CASCADE,
5557
CONSTRAINT `TEST_TABLE_TINYINT_REFERENCE_TABLE_TINYINT_REF` FOREIGN KEY (`tinyint`) REFERENCES `reference_table` (`tinyint_ref`) ON DELETE SET NULL
56-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
58+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
5759
];

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule1/fixture/declarative_installer/rollback.mariadb106.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
`store_owner_id` smallint(6) DEFAULT NULL COMMENT \'Store Owner Reference\',
1313
KEY `STORE_STORE_OWNER_ID_STORE_OWNER_OWNER_ID` (`store_owner_id`),
1414
CONSTRAINT `STORE_STORE_OWNER_ID_STORE_OWNER_OWNER_ID` FOREIGN KEY (`store_owner_id`) REFERENCES `store_owner` (`owner_id`) ON DELETE SET NULL
15-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
15+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
1616
'store_owner' => 'CREATE TABLE `store_owner` (
1717
`owner_id` smallint(6) NOT NULL AUTO_INCREMENT,
1818
`store_owner_name` varchar(255) DEFAULT NULL COMMENT \'Store Owner Name\',
1919
PRIMARY KEY (`owner_id`)
20-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT=\'Store owner information\''
20+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT=\'Store owner information\''
2121
],
2222
'after' => [
2323
'store' => 'CREATE TABLE `store` (
2424
`store_owner` varchar(255) DEFAULT NULL COMMENT \'Store Owner Name\'
25-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci'
25+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3'
2626
]
2727
];

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule1/fixture/declarative_installer/table_removal.mariadb106.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
return [
79
'auto_increment_test' => 'CREATE TABLE `auto_increment_test` (
810
`int_auto_increment_with_nullable` int(10) unsigned NOT NULL AUTO_INCREMENT,
911
`int_disabled_auto_increment` smallint(5) unsigned DEFAULT 0,
1012
UNIQUE KEY `AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE` (`int_auto_increment_with_nullable`)
11-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci'
13+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3'
1214
];

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule1/fixture/declarative_installer/table_rename.mariadb106.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
return [
99
'before' => 'CREATE TABLE `some_table` (
1010
`some_column` varchar(255) DEFAULT NULL COMMENT \'Some Column Name\'
11-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
11+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
1212
'after' => 'CREATE TABLE `some_table_renamed` (
1313
`some_column` varchar(255) DEFAULT NULL COMMENT \'Some Column Name\'
14-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
14+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
1515
];

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule1/fixture/dry_run_log.mariadb106.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
// @codingStandardsIgnoreFile
79
return ['CREATE TABLE `reference_table` (
810
`tinyint_ref` tinyint NOT NULL AUTO_INCREMENT ,

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule2/fixture/shards.mariadb106.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
return [
79
'test_table_one' => 'CREATE TABLE `test_table_one` (
810
`smallint` smallint(6) NOT NULL AUTO_INCREMENT,
911
`varchar` varchar(254) DEFAULT NULL,
1012
PRIMARY KEY (`smallint`)
11-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
13+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
1214
'test_table_two' => 'CREATE TABLE `test_table_two` (
1315
`smallint` smallint(6) NOT NULL AUTO_INCREMENT,
1416
`varchar` varchar(254) DEFAULT NULL,
1517
PRIMARY KEY (`smallint`)
16-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
18+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
1719
'reference_table' => 'CREATE TABLE `reference_table` (
1820
`tinyint_ref` tinyint(4) NOT NULL AUTO_INCREMENT,
1921
`tinyint_without_padding` tinyint(4) NOT NULL DEFAULT 0,
@@ -27,10 +29,10 @@
2729
`bigint_default_nullable` bigint(20) unsigned DEFAULT 1,
2830
`bigint_not_default_not_nullable` bigint(20) unsigned NOT NULL,
2931
PRIMARY KEY (`tinyint_ref`)
30-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci',
32+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3',
3133
'auto_increment_test' => 'CREATE TABLE `auto_increment_test` (
3234
`int_auto_increment_with_nullable` int(10) unsigned NOT NULL AUTO_INCREMENT,
3335
`int_disabled_auto_increment` smallint(5) unsigned DEFAULT 0,
3436
UNIQUE KEY `AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE` (`int_auto_increment_with_nullable`)
35-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci'
37+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3'
3638
];

dev/tests/setup-integration/_files/Magento/TestSetupDeclarationModule9/fixture/declarative_installer/disabling_tables.mariadb106.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
`int_auto_increment_with_nullable` int(10) unsigned NOT NULL AUTO_INCREMENT,
1111
`int_disabled_auto_increment` smallint(5) unsigned DEFAULT 0,
1212
UNIQUE KEY `AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE` (`int_auto_increment_with_nullable`)
13-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci'
13+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3'
1414
];

0 commit comments

Comments
 (0)