Browse Source

Update database

master
root 5 years ago
parent
commit
cf1d8d82cb
  1. 4
      src/Entity/Comentarios.php
  2. 10
      src/Entity/Facturas.php
  3. 8
      src/Entity/Formularios.php
  4. 8
      src/Entity/Modulos.php
  5. 8
      src/Entity/Pagina.php
  6. 4
      src/Entity/Productovariantes.php

4
src/Entity/Comentarios.php

@ -31,9 +31,9 @@ class Comentarios
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fecha = 'current_timestamp()';
private $fecha;
/** /**
* @var int * @var int

10
src/Entity/Facturas.php

@ -24,9 +24,9 @@ class Facturas
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fecha = 'current_timestamp()';
private $fecha;
/** /**
* @var bool * @var bool
@ -52,21 +52,21 @@ class Facturas
/** /**
* @var float * @var float
* *
* @ORM\Column(name="precio", type="float", precision=10, scale=0, nullable=false)
* @ORM\Column(name="precio", type="decimal", precision=7, scale=2, nullable=false)
*/ */
private $precio; private $precio;
/** /**
* @var float * @var float
* *
* @ORM\Column(name="impuestos", type="float", precision=10, scale=0, nullable=false, options={"comment"="total de los impuestos en euros"})
* @ORM\Column(name="impuestos", type="decimal", precision=7, scale=2, nullable=false, options={"comment"="total de los impuestos en euros"})
*/ */
private $impuestos; private $impuestos;
/** /**
* @var float * @var float
* *
* @ORM\Column(name="total", type="float", precision=10, scale=0, nullable=false)
* @ORM\Column(name="total", type="decimal", precision=7, scale=2, nullable=false)
*/ */
private $total; private $total;

8
src/Entity/Formularios.php

@ -45,16 +45,16 @@ class Formularios
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fechaCreacion = 'current_timestamp()';
private $fechaCreacion;
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fechaModificacion = 'current_timestamp()';
private $fechaModificacion;
/** /**
* @var \Plantillas * @var \Plantillas

8
src/Entity/Modulos.php

@ -52,16 +52,16 @@ class Modulos
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fechaCreacion = 'current_timestamp()';
private $fechaCreacion;
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fechaModificacion = 'current_timestamp()';
private $fechaModificacion;
public function getId(): ?int public function getId(): ?int
{ {

8
src/Entity/Pagina.php

@ -52,16 +52,16 @@ class Pagina
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fechaCreacion = 'current_timestamp()';
private $fechaCreacion;
/** /**
* @var \DateTime * @var \DateTime
* *
* @ORM\Column(name="fecha_actualizacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_actualizacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/ */
private $fechaActualizacion = 'current_timestamp()';
private $fechaActualizacion;
/** /**
* @var \Plantillas * @var \Plantillas

4
src/Entity/Productovariantes.php

@ -38,9 +38,9 @@ class Productovariantes
/** /**
* @var float|null * @var float|null
* *
* @ORM\Column(name="precio", type="float", precision=10, scale=0, nullable=true, options={"default"="NULL"})
* @ORM\Column(name="precio", type="decimal", precision=7, scale=2, nullable=true, options={"default"="0"})
*/ */
private $precio = NULL;
private $precio = 0;
/** /**
* @var \Productos * @var \Productos

Loading…
Cancel
Save