Skip to content

[READ-ONLY] Db manager to manage database connection and migrations

Notifications You must be signed in to change notification settings

aftdev/db-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Db Manager.

Database connection manager with migration feature using phinx

Provide a common repository of database connections that can be used by other packages.

Database Connections

return [
   'database' => [
       'connections' => [
           'mysql' => [
               'default' => true,
               'type' => 'mysql',
               'database' => 'db_name',
               'hostname' => '127.0.0.1',
               'user' => 'X',
               'password' => 'X',
           ],
           'other_connection' => [
               'type' => 'mysql',
               'database' => 'other_db',
               'hostname' => '127.0.0.1',
               'user' => 'X',
               'password' => 'X',
           ],
       ],
    ],
];

Phinx Db Migration Manager.

Allow other packages to define phinx migrations scripts.

<?php 
return [
    'database' => [
        'migrations' => [
            'paths' => [
                'path/to/migrations/directory',
            ],
            'seeds' => [
                'path/to/seeds/directory',
            ],
       ],
    ],
];

See: http://docs.phinx.org/en/latest/index.html

Instead of using the phinx bin use the database bin provided by this package.

vendor/bin/database

About

[READ-ONLY] Db manager to manage database connection and migrations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages