浏览代码

FD3-442 migración cablemodem workflow

Guillermo Espinoza 7 年之前
父节点
当前提交
b8e21a4b6a
共有 2 个文件被更改,包括 42 次插入0 次删除
  1. 27 0
      app/DoctrineMigrations/Version20180124153518.php
  2. 15 0
      app/DoctrineMigrations/Version20180124153518.yml

+ 27 - 0
app/DoctrineMigrations/Version20180124153518.php

@@ -0,0 +1,27 @@
+<?php
+
+namespace Application\Migrations;
+
+use Doctrine\DBAL\Schema\Schema;
+use MigrationsBundle\Migrations\MigrationsBase;
+
+/**
+ * Migración cablemodem_workflow
+ */
+class Version20180124153518 extends MigrationsBase
+{
+    /**
+     * @param Schema $schema
+     */
+    public function up(Schema $schema)
+    {
+        $this->executeYaml(__DIR__, 'Version20180124153518.yml');
+    }
+
+    /**
+     * @param Schema $schema
+     */
+    public function down(Schema $schema)
+    {
+    }
+}

+ 15 - 0
app/DoctrineMigrations/Version20180124153518.yml

@@ -0,0 +1,15 @@
+replace:
+    workflow:
+        - id: 1
+          name: "cablemodem_workflow"
+          type: "state_machine"
+          marking_type: "single_state"
+          marking_name: "currentState"
+          description: "cablemodem workflow"
+          template: "initial_place: active\r\nplaces:\r\n  - active\r\n  - disable\r\ntransitions:\r\n  add_config:\r\n    from: active\r\n    to: active\r\n  disable:\r\n    from: active\r\n    to: disable\r\n  active:\r\n    from: disable\r\n    to: active"
+          created: "2017-04-27 11:35:07"
+          updated: "2017-04-27 20:01:43"
+          tenancy_id: 1
+          enable: 1
+          support: "a:1:{i:0;s:21:\"CablemodemBundle\\Entity\\Cablemodem\";}"
+          owner: "1"