1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Accounted for PHP 7 behavior change in db_verify::getPrevious()

See: https://github.com/e107inc/e107/issues/3768
This commit is contained in:
Deltik
2019-03-29 18:20:23 -05:00
parent d28a1a4a77
commit f9ba6302c1
2 changed files with 3 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ php composer-setup.php
php -r "unlink('composer-setup.php');"
php composer.phar install
php composer.phar update
git submodule update --init --recursive --remote

View File

@@ -309,11 +309,11 @@
$actual = $this->dbv->getFixQuery('insert', 'table', 'table_auth', $sqlFileData);
$expected = "ALTER TABLE `e107_table` ADD `table_auth` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0'";
$expected = "ALTER TABLE `e107_table` ADD `table_auth` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER table_ip";
$this->assertEquals($expected,$actual);
$actual = $this->dbv->getFixQuery('insert', 'table', 'table_json', $sqlFileData);
$expected = "ALTER TABLE `e107_table` ADD `table_json` JSON NOT NULL";
$expected = "ALTER TABLE `e107_table` ADD `table_json` JSON NOT NULL AFTER table_category";
$this->assertEquals($expected,$actual);
$actual = $this->dbv->getFixQuery('index', 'table', 'table_email', $sqlFileData);