m240813_184024_actualizacion_de_Vehiculo.php 799 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. use yii\db\Migration;
  3. /**
  4. * Class m240813_184024_actualizacion_de_Vehiculo, PERO ES LA CREACIÓN DE LA TABLA "Color"
  5. */
  6. class m240813_184024_actualizacion_de_Vehiculo extends Migration {
  7. public function safeUp() {
  8. $this->createTable('Color', [
  9. "id" => $this->string(36),
  10. "clave" => $this->string(100)->notNull(),
  11. "color" => $this->string(100)->notNull(),
  12. "descripcion" => $this->string(100),
  13. "creado" => $this->timestamp()->append(" with time zone"),
  14. "modificado" => $this->timestamp()->append(" with time zone"),
  15. "eliminado" => $this->timestamp()->append(" with time zone"),
  16. ]);
  17. $this->addPrimaryKey('ColorPK', 'Color', 'id');
  18. }
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function safeDown() {
  23. $this->dropTable("Color");
  24. }
  25. }