-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphinx-adapter.php
More file actions
39 lines (32 loc) · 928 Bytes
/
phinx-adapter.php
File metadata and controls
39 lines (32 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* MultiFlexi - Phinx database adapter.
*
* @author Vítězslav Dvořák <info@vitexsoftware.cz>
* @copyright 2021-2024 Vitex Software
*/
if (file_exists('./vendor/autoload.php')) {
include_once './vendor/autoload.php';
} else {
include_once '../vendor/autoload.php';
}
$prefix = file_exists('./db/') ? './db/' : '../db/';
$sqlOptions = [];
require('catalog/includes/local/configure.php');
return [
"paths" => [
"migrations" => "db/migrations"
],
"environments" => [
"default_migration_table" => "phinxlog",
"default_environment" => "dev",
"dev" => [
"adapter" => "mysql",
"host" => DB_SERVER,
"name" => DB_DATABASE,
"user" => DB_SERVER_USERNAME,
"pass" => DB_SERVER_PASSWORD,
"port" => '3306'
]
]
];