Skip to content

Instantly share code, notes, and snippets.

@JeffPeters
JeffPeters / CustomConfiguration.php
Last active April 22, 2016 12:49
Example using Doctrine Migration with a Custom Configuration File from code in https://github.com/JeffPeters/migrations/tree/custom-configuration-class
<?php
class CustomConfiguration extends \Doctrine\DBAL\Migrations\Configuration\Configuration
{
protected function createVersion($version, $class)
{
return new CustomVersion($this, $version, $class);
}
//createMigrationTable with an extra excuted date column
protected $migrationTableCreated=false;