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