This repository has been archived on 2023-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
prosody_web_admin_rest/config/phpmig.php

18 lines
669 B
PHP
Raw Normal View History

2016-07-10 15:32:38 +00:00
<?php
2021-05-20 23:21:43 +00:00
use Phpmig\Adapter;
2016-07-10 15:32:38 +00:00
$container = new ArrayObject();
$container['env'] = BootstrapHelper::bootEnvironment();
$container['db'] = BootstrapHelper::bootDatabase();
2016-07-10 15:32:38 +00:00
$container['phpmig.adapter'] = new Phpmig\Adapter\PDO\Sql($container['db']->getConnection()->getPdo(), 'migrations');
2021-05-20 23:21:43 +00:00
$container['phpmig.migrations_template_path'] = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'phpmig_template.php';
$container['phpmig.migrations_path'] = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'migrations';
2016-07-10 15:32:38 +00:00
$container['schema'] = $container['db']->schema();
2021-05-20 23:21:43 +00:00
return $container;