Browse Source

migracion id firebase

Luis Hernandez 3 năm trước cách đây
mục cha
commit
e2925dc504
1 tập tin đã thay đổi với 29 bổ sung0 xóa
  1. 29 0
      migrations/m230130_173821_campos_uid_tablas.php

+ 29 - 0
migrations/m230130_173821_campos_uid_tablas.php

@@ -0,0 +1,29 @@
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m230130_173821_campos_uid_tablas
+ */
+class m230130_173821_campos_uid_tablas extends Migration {
+  /**
+   * {@inheritdoc}
+   */
+  public function safeUp() {
+    $this->addColumn("Dependencia", "firebaseId", $this->string(50));
+    $this->addColumn("Evento", "firebaseId", $this->string(50));
+    $this->addColumn("Grupo", "firebaseId", $this->string(50)); 
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function safeDown() {
+    
+    $this->dropColumn("Grupo", "firebaseId");
+    $this->dropColumn("Evento", "firebaseId");
+    $this->dropColumn("Dependencia", "firebaseId");
+
+  }
+
+}