|
@@ -3,9 +3,9 @@
|
|
use yii\db\Migration;
|
|
use yii\db\Migration;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Class m241015_212707_Tabla_Gastos_y_Pagos_creacion
|
|
|
|
|
|
+ * Class m241016_185927_Tabla_Gasto_y_Pagos_creacion
|
|
*/
|
|
*/
|
|
-class m241015_212707_Tabla_Gastos_y_Pagos_creacion extends Migration
|
|
|
|
|
|
+class m241016_185927_Tabla_Gasto_y_Pagos_creacion extends Migration
|
|
{
|
|
{
|
|
/**
|
|
/**
|
|
* {@inheritdoc}
|
|
* {@inheritdoc}
|
|
@@ -16,7 +16,7 @@ class m241015_212707_Tabla_Gastos_y_Pagos_creacion extends Migration
|
|
"id" => $this->string(36),
|
|
"id" => $this->string(36),
|
|
"idObra" => $this->string(36),
|
|
"idObra" => $this->string(36),
|
|
"idConceptoObra" => $this->string(36),
|
|
"idConceptoObra" => $this->string(36),
|
|
- "cantidad" => $this->string(100),
|
|
|
|
|
|
+ "cantidad" => $this->integer(),
|
|
"descripcion" => $this->string(100),
|
|
"descripcion" => $this->string(100),
|
|
"fechaCompra" => $this->timestamp()->append(" with time zone"),
|
|
"fechaCompra" => $this->timestamp()->append(" with time zone"),
|
|
"creado" => $this->timestamp()->append(" with time zone"),
|
|
"creado" => $this->timestamp()->append(" with time zone"),
|
|
@@ -34,7 +34,7 @@ class m241015_212707_Tabla_Gastos_y_Pagos_creacion extends Migration
|
|
"id" => $this->string(36),
|
|
"id" => $this->string(36),
|
|
"idObra" => $this->string(36),
|
|
"idObra" => $this->string(36),
|
|
"idConceptoObra" => $this->string(36),
|
|
"idConceptoObra" => $this->string(36),
|
|
- "cantidad" => $this->string(100),
|
|
|
|
|
|
+ "cantidad" => $this->integer(),
|
|
"descripcion" => $this->string(100),
|
|
"descripcion" => $this->string(100),
|
|
"fechaPago" => $this->timestamp()->append(" with time zone"),
|
|
"fechaPago" => $this->timestamp()->append(" with time zone"),
|
|
"creado" => $this->timestamp()->append(" with time zone"),
|
|
"creado" => $this->timestamp()->append(" with time zone"),
|
|
@@ -60,6 +60,8 @@ class m241015_212707_Tabla_Gastos_y_Pagos_creacion extends Migration
|
|
$this->dropTable('Pago');
|
|
$this->dropTable('Pago');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
/*
|
|
/*
|
|
// Use up()/down() to run migration code without a transaction.
|
|
// Use up()/down() to run migration code without a transaction.
|
|
public function up()
|
|
public function up()
|
|
@@ -69,7 +71,7 @@ class m241015_212707_Tabla_Gastos_y_Pagos_creacion extends Migration
|
|
|
|
|
|
public function down()
|
|
public function down()
|
|
{
|
|
{
|
|
- echo "m241015_212707_Tabla_Gastos_y_Pagos_creacion cannot be reverted.\n";
|
|
|
|
|
|
+ echo "m241016_185927_Tabla_Gasto_y_Pagos_creacion cannot be reverted.\n";
|
|
|
|
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|