# Upgrading to xibo v2, unable to do database migrations

**URL:** https://community.xibo.org.uk/t/upgrading-to-xibo-v2-unable-to-do-database-migrations/18074
**Category:** Get Help
**Created:** [March 20, 2019, 12:08pm UTC](https://community.xibo.org.uk/t/upgrading-to-xibo-v2-unable-to-do-database-migrations/18074 "2019-03-20T12:08:27Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![ONeill](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/o/58f4c7/32.png) [@ONeill](https://community.xibo.org.uk/u/ONeill)
#### Post date: [March 21, 2019, 1:33pm UTC](https://community.xibo.org.uk/t/upgrading-to-xibo-v2-unable-to-do-database-migrations/18074/7 "2019-03-21T13:33:08Z")

</div>

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’;

4. In folder “vendor\bin\app” using Notepad edit file “phinx.php”:  
change line  
$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 🙂

---

_[View the full topic](https://community.xibo.org.uk/t/upgrading-to-xibo-v2-unable-to-do-database-migrations/18074)._
