Bladeren bron

Composer updated. Deleted migration.

Daniel Libonati 6 jaren geleden
bovenliggende
commit
3c577ed26f
3 gewijzigde bestanden met toevoegingen van 6 en 50 verwijderingen
  1. 0 46
      app/DoctrineMigrations/Version20180424133417.php
  2. 3 1
      composer.json
  3. 3 3
      composer.lock

+ 0 - 46
app/DoctrineMigrations/Version20180424133417.php

@@ -1,46 +0,0 @@
-<?php
-
-namespace Application\Migrations;
-
-use Doctrine\DBAL\Schema\Schema;
-use MigrationsBundle\Migrations\MigrationsBase;
-
-/**
- * Migración que carga los archivos yml del directorio src/
- */
-class Version20180424133417 extends MigrationsBase
-{
-
-    /**
-     * @param Schema $schema
-     */
-    public function up(Schema $schema)
-    {
-        // migrations a borrar
-        $migrationVersions = [
-            '20170720182513',
-            '20171205180407',
-            '20171205183401',
-            '20171219120324',
-            '20180111183322',
-            '20180124175322',
-            '20180410130145',
-            '20180424133417'
-        ];
-
-        foreach ($migrationVersions as $version) {
-            $this->addSql("DELETE FROM migration_versions WHERE version = {$version};");
-        }
-
-        // cargo todos los archivos que esten en src/
-        // deben tener extensión yml
-        $directory = __DIR__ . DIRECTORY_SEPARATOR . 'src';
-        $migrations = scandir($directory);
-        foreach ($migrations as $migration) {
-            $this->executeYaml($directory, $migration);
-            $this->showResult();
-        }
-
-    }
-
-}

+ 3 - 1
composer.json

@@ -207,6 +207,7 @@
         "doctrine-update": "php bin/console doctrine:schema:update --force",
         "auto-increment": "php bin/console baseadmin:autoincrement --tables=\"action,oltmodel,onumodel,profile,templates,vlan_id,workflow\"",
         "workflow-default": "php bin/console workflow:default --class=FTTHBundle\\\\Entity\\\\ONU --all",
+	"update-data": "php bin/console ik:update:data '/opt/ftth/app/DoctrineMigrations/src/'",
         "post-install-cmd": [
             "@workflows-commands",
             "@symfony-scripts",
@@ -216,7 +217,8 @@
             "@auto-increment",
             "@doctrine-migrations-down",
             "@doctrine-migrations",
-            "@workflow-default"
+            "@workflow-default",
+	    "@update-data"
         ],
         "post-update-cmd": [
             "@workflows-commands",

+ 3 - 3
composer.lock

@@ -1947,7 +1947,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/BaseAdmin.git",
-                "reference": "afc4e099fd2f4087769b0071478063937a8a2d26"
+                "reference": "a2b2110a69a21e2691266d66e421d2e56dff1c8a"
             },
             "type": "library",
             "autoload": {
@@ -1962,7 +1962,7 @@
                 "bootstrap",
                 "sonata"
             ],
-            "time": "2019-02-06T12:51:24+00:00"
+            "time": "2019-02-11T17:28:26+00:00"
         },
         {
             "name": "ik/check-sintax-bundle",
@@ -6763,7 +6763,7 @@
         "voryx/restgeneratorbundle": 20
     },
     "prefer-stable": false,
-    "prefer-lowest": false,
+    "prefer-lowest": true,
     "platform": {
         "php": ">=5.5.9"
     },