mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
Squashed commit of the following: Author: itismadness <itismadness@apollo.rip> Implement new app structure remove unneeded migration for testing improve migrations comment out up() function for now add new migrations rename classes to singular form update another util function implement more testing rename test to tester add unit test framework
89 lines
1.7 KiB
PHP
89 lines
1.7 KiB
PHP
<?php
|
|
|
|
require(__DIR__.'/classes/config.php');
|
|
|
|
return
|
|
[
|
|
'paths' => [
|
|
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
|
|
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds'
|
|
],
|
|
'environments' => [
|
|
'default_migration_table' => 'phinxlog',
|
|
'default_database' => 'vagrant',
|
|
'apollo' => [
|
|
'adapter' => 'mysql',
|
|
'host' => SQLHOST,
|
|
'name' => SQLDB,
|
|
'user' => SQLLOGIN,
|
|
'pass' => SQLPASS,
|
|
'port' => SQLPORT,
|
|
'charset' => 'utf8'
|
|
],
|
|
'gazelle' => [
|
|
'adapter' => 'mysql',
|
|
'host' => SQLHOST,
|
|
'name' => SQLDB,
|
|
'user' => SQLLOGIN,
|
|
'pass' => SQLPASS,
|
|
'port' => SQLPORT,
|
|
'charset' => 'utf8'
|
|
],
|
|
'vagrant' => [
|
|
'adapter' => 'mysql',
|
|
'host' => 'localhost',
|
|
'name' => 'gazelle',
|
|
'user' => 'gazelle',
|
|
'pass' => 'password',
|
|
'port' => 3306,
|
|
'charset' => 'utf8'
|
|
],
|
|
'vagrant_external' => [
|
|
'adapter' => 'mysql',
|
|
'host' => '127.0.0.1',
|
|
'name' => 'gazelle',
|
|
'user' => 'gazelle',
|
|
'pass' => 'password',
|
|
'port' => 36000,
|
|
'charset' => 'utf8'
|
|
]
|
|
],
|
|
'version_order' => 'creation'
|
|
];
|
|
/*
|
|
paths:
|
|
migrations: '%%PHINX_CONFIG_DIR%%/db/migrations'
|
|
seeds: '%%PHINX_CONFIG_DIR%%/db/seeds'
|
|
|
|
environments:
|
|
default_migration_table: phinxlog
|
|
default_database: vagrant
|
|
production:
|
|
adapter: mysql
|
|
host: localhost
|
|
name: production_db
|
|
user: root
|
|
pass: ''
|
|
port: 3306
|
|
charset: utf8
|
|
|
|
vagrant:
|
|
adapter: mysql
|
|
host: localhost
|
|
name: gazelle
|
|
user: gazelle
|
|
pass: password
|
|
port: 3306
|
|
charset: utf8
|
|
|
|
vagrant_remote:
|
|
adapter: mysql
|
|
host: localhost
|
|
name: gazelle
|
|
user: gazelle
|
|
pass: password
|
|
port: 36000
|
|
charset: utf8
|
|
|
|
version_order: creation
|
|
*/ |