Created
April 14, 2013 18:47
-
-
Save elnur/5383765 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
| /** | |
| * @BeforeScenario | |
| */ | |
| public function initDb() | |
| { | |
| $container = $this->getContainer(); | |
| $dir = $container->getParameter('elnur_database.migrations_dir'); | |
| $db = $container->get('database_connection'); | |
| $db->exec('DROP SCHEMA IF EXISTS public CASCADE'); | |
| $db->exec('CREATE SCHEMA public'); | |
| $migrationManager = new MigrationManager($db, $dir); | |
| $migrationManager->migrate(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment