|
@@ -0,0 +1,26 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use yii\db\Migration;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Class m240719_013111_columna_tipo_vehiculo
|
|
|
+ */
|
|
|
+class m240719_013111_columna_tipo_vehiculo extends Migration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ public function safeUp()
|
|
|
+ {
|
|
|
+ $this->addColumn("Vehiculo", "tipo", $this->string(100));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ public function safeDown()
|
|
|
+ {
|
|
|
+ $this->dropColumn("Vehiculo", "tipo");
|
|
|
+ }
|
|
|
+
|
|
|
+}
|