Upgrading to xibo v2, unable to do database migrations

That didn’t work, but I have succefully solved it.

Here is how:

  1. Copy folder “app” from “vendor\robmorgan\phinx” to “vendor\bin”

  2. Copy folder “src” from “vendor\robmorgan\phinx” to “vendor\bin\app”

  3. In folder “vendor\bin” using Notepad edit file “phinx”:
    change line
    $app = require DIR . ‘/…/app/phinx.php’;

    to

    $app = require DIR . ‘/app/phinx.php’;

  4. In folder “vendor\bin\app” using Notepad edit file “phinx.php”:
    change line
    $autoloader = require DIR . ‘/…/src/composer_autoloader.php’;

    to

    $autoloader = require DIR . ‘/src/composer_autoloader.php’;

  5. Run this command: php vendor\bin\phinx migrate -c phinx.php

Couple of seconds later, migration is complete and I can login to my Xibo.

Now Xibo 2.0.0 is running with PHP 7.3 :slight_smile:

7 Likes