<?php use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Output\BufferedOutput; require_once "../system/autoload.php"; \Aurora\System\Api::Init(true); $sPassword = "pass"; set_time_limit(0); if (!(isset($_GET['pass']) && $sPassword !== '' && $sPassword === $_GET['pass'])) { exit("Migration script password is incorrect or not set."); } class P8ToP9Migration { public function Init() { } public function Start() { try { $container = \Aurora\Api::GetContainer(); $container['console']->setAutoExit(false); $output = new BufferedOutput(); $container['console']->find('migrate:eav-to-sql') ->run(new ArrayInput([ '--no-interaction'=>true, '--wipe'=>!!$_GET['wipe'], '--quiet'=>!!$_GET['quiet'], '--migrate-file'=>!!$_GET['migrate-file'], ]), $output); $content = array_filter(explode(PHP_EOL, $output->fetch())); dd($content); } catch (\Exception $oEx) { dd($oEx); \Aurora\System\Api::LogException($oEx); } } } ob_start(); $oMigration = new P8ToP9Migration(); $oMigration->Start(); ob_end_flush(); exit("Done");
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
Core.config.json | File | 4.25 KB | 0644 |
|
_edit.php | File | 3.58 KB | 0644 |
|
_edit.xml | File | 433 B | 0644 |
|
_extend.php | File | 1.51 KB | 0644 |
|
changelog.txt | File | 2.53 KB | 0644 |
|
clone.php | File | 4.98 KB | 0644 |
|
config.json | File | 7.13 KB | 0644 |
|
db_init.php | File | 619 B | 0644 |
|
encryption_key.php | File | 8 B | 0644 |
|
fileindex.php | File | 188 B | 0644 |
|
import.php | File | 3.82 KB | 0644 |
|
info.xml | File | 3.88 KB | 0644 |
|
install.js | File | 1.29 KB | 0644 |
|
install.php | File | 5.86 KB | 0644 |
|
install.xml | File | 3.58 KB | 0644 |
|
md5 | File | 2.16 KB | 0644 |
|
migrate.php | File | 1.28 KB | 0644 |
|
notes.txt | File | 1.46 KB | 0644 |
|
upgrade.php | File | 5.74 KB | 0644 |
|
upgrade.xml | File | 627 B | 0644 |
|