|
@@ -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");
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|