aimeos / aimeos-core

Aimeos PHP e-commerce framework for ultra fast online shops, scalable marketplaces, complex B2B applications and #gigacommerce

Home Page:https://aimeos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UPGRADE from 2020.10 to 2021.04 in PostgreSQL

MahmoudDevo opened this issue · comments

Hello,
UPGRADE from 2020.10 to 2021.04 in PostgreSQL
when i type :
php ./artisan aimeos:setup

  SQLSTATE[42601]: Syntax error: 7 ERROR:  syntax error at or near "FOREIGN"
LINE 1: ALTER TABLE "users_address" DROP FOREIGN KEY "fk_lvuad_pid"
                                         ^: ALTER TABLE "users_address" DROP FOREIGN KEY "fk_lvuad_pid"

  at C:\laragon\www\vendor\aimeos\aimeos-core\lib\mwlib\src\MW\DB\Statement\DBAL\Simple.php:75
     71▕        {
     72▕                try {
     73▕                        $result = $this->exec();
     74▕                } catch( \PDOException $e ) {
  ➜  75▕                        throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() ); 
     76▕                }
     77▕
     78▕                return new \Aimeos\MW\DB\Result\PDO( $result );
     79▕        }

  1   C:\laragon\www\vendor\aimeos\aimeos-core\lib\mwlib\src\MW\Setup\Task\Base.php:146
      Aimeos\MW\DB\Statement\DBAL\Simple::execute()

  2   C:\laragon\www\ext\ai-laravel\lib\custom\setup\CustomerRemoveConstraints.php:57
      Aimeos\MW\Setup\Task\Base::execute("ALTER TABLE "users_address" DROP FOREIGN KEY "fk_lvuad_pid"", "db-customer") 

Fixed in dev-master and 2021.04.x-dev