mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +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:
@@ -14,6 +14,7 @@ php composer-setup.php
|
|||||||
php -r "unlink('composer-setup.php');"
|
php -r "unlink('composer-setup.php');"
|
||||||
|
|
||||||
php composer.phar install
|
php composer.phar install
|
||||||
|
php composer.phar update
|
||||||
|
|
||||||
git submodule update --init --recursive --remote
|
git submodule update --init --recursive --remote
|
||||||
|
|
||||||
|
@@ -309,11 +309,11 @@
|
|||||||
|
|
||||||
|
|
||||||
$actual = $this->dbv->getFixQuery('insert', 'table', 'table_auth', $sqlFileData);
|
$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);
|
$this->assertEquals($expected,$actual);
|
||||||
|
|
||||||
$actual = $this->dbv->getFixQuery('insert', 'table', 'table_json', $sqlFileData);
|
$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);
|
$this->assertEquals($expected,$actual);
|
||||||
|
|
||||||
$actual = $this->dbv->getFixQuery('index', 'table', 'table_email', $sqlFileData);
|
$actual = $this->dbv->getFixQuery('index', 'table', 'table_email', $sqlFileData);
|
||||||
|
Reference in New Issue
Block a user