commit eac3f387fddc3f22bb58a03024bef68165927a5b
parent 6ee4eb2c5e428c7480d93756788d814b5e08cc61
Author: Felicitus <felicitus@felicitus.org>
Date: Fri, 6 Apr 2012 07:47:09 +0200
Removed doctrine migrations
Diffstat:
5 files changed, 0 insertions(+), 40 deletions(-)
diff --git a/src/backend/de/RaumZeitLabor/PartKeepr/Setup/SchemaMigrationSetup.php b/src/backend/de/RaumZeitLabor/PartKeepr/Setup/SchemaMigrationSetup.php
@@ -1,21 +0,0 @@
-<?php
-namespace de\RaumZeitLabor\PartKeepr\Setup;
-
-use de\RaumZeitLabor\PartKeepr\PartKeepr,
- Doctrine\DBAL\Migrations\Migration,
- Doctrine\DBAL\Migrations\Configuration\YamlConfiguration;
-/**
- * Updates (or creates) the database schema
- */
-class SchemaMigrationSetup extends AbstractSetup {
- public function run () {
- $configuration = new YamlConfiguration($this->entityManager->getConnection());
-
- $baseDir = dirname(dirname(dirname(dirname(dirname(dirname(__DIR__))))));
- $configuration->load($baseDir . "/migrations.yml");
-
- $migration = new Migration($configuration);
- $migration->migrate();
- $this->logMessage("Database Schema migrated to the latest version");
- }
-}-
\ No newline at end of file
diff --git a/src/backend/de/RaumZeitLabor/PartKeepr/Setup/Setup.php b/src/backend/de/RaumZeitLabor/PartKeepr/Setup/Setup.php
@@ -51,7 +51,6 @@ class Setup {
"siprefix" => new SiPrefixSetup($entityManager),
"unit" => new UnitSetup($entityManager),
"manufacturer" => new ManufacturerSetup($entityManager),
- "schemamigration" => new SchemaMigrationSetup($entityManager),
"miscsettings" => new MiscSettingsSetup($entityManager)
);
diff --git a/src/setup/index.html b/src/setup/index.html
@@ -61,7 +61,6 @@
<script type="text/javascript" src="js/SetupSteps/SiPrefixSetup.js"></script>
<script type="text/javascript" src="js/SetupSteps/UnitSetup.js"></script>
<script type="text/javascript" src="js/SetupSteps/FootprintSetup.js"></script>
- <script type="text/javascript" src="js/SetupSteps/SchemaMigrationSetup.js"></script>
<script type="text/javascript" src="js/SetupSteps/ConfigFileSetup.js"></script>
<script type="text/javascript" src="js/SetupSteps/MiscSetup.js"></script>
diff --git a/src/setup/js/Cards/DatabaseSetupCard.js b/src/setup/js/Cards/DatabaseSetupCard.js
@@ -22,7 +22,6 @@ Ext.define('PartKeeprSetup.DatabaseSetupCard', {
this.tests.push(new PartKeeprSetup.SiPrefixSetup());
this.tests.push(new PartKeeprSetup.UnitSetup());
this.tests.push(new PartKeeprSetup.ManufacturerSetup());
- this.tests.push(new PartKeeprSetup.SchemaMigrationSetup());
this.tests.push(new PartKeeprSetup.MiscSetup());
}
});
diff --git a/src/setup/js/SetupSteps/SchemaMigrationSetup.js b/src/setup/js/SetupSteps/SchemaMigrationSetup.js
@@ -1,14 +0,0 @@
-/**
- * Migrates the schema to the latest version
- */
-Ext.define('PartKeeprSetup.SchemaMigrationSetup', {
- extend: 'PartKeeprSetup.AbstractTest',
- url: 'setup.php',
- name: "Database",
- message: "Migrating the schema to the latest version",
-
- onBeforeRunTest: function () {
- this.params = Ext.getCmp("database-parameters-card").dbparams;
- this.params.step = "schemamigration";
- }
-});-
\ No newline at end of file