Created
March 28, 2017 19:26
-
-
Save brianium/7179aa8cea2b51f47494d0970b96c1f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Phinx\Config\Config as PhinxConfig; | |
class Config extends PhinxConfig | |
{ | |
/** | |
* {@inheritdoc} | |
*/ | |
public function getMigrationPath() | |
{ | |
// use get_template_directory, plugin_dir_path, etc... | |
return '/the/path/to/your/migrations/directory'; | |
} | |
/** | |
* {@inheritdoc} | |
* | |
* @param boolean $dropNamespace Return the base migration class name without the namespace. | |
* @return string | |
*/ | |
public function getMigrationBaseClassName($dropNamespace = true) | |
{ | |
return 'SomeFullyQualifiedMigrationBaseClassName'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment