Skip to content

Instantly share code, notes, and snippets.

@brianium
Created March 28, 2017 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianium/7179aa8cea2b51f47494d0970b96c1f7 to your computer and use it in GitHub Desktop.
Save brianium/7179aa8cea2b51f47494d0970b96c1f7 to your computer and use it in GitHub Desktop.
<?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