From cf1d8d82cb4837fc9e03faeff0e7dbc35b602132 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 2 Aug 2021 14:22:48 +0200 Subject: [PATCH] Update database --- src/Entity/Comentarios.php | 4 ++-- src/Entity/Facturas.php | 10 +++++----- src/Entity/Formularios.php | 8 ++++---- src/Entity/Modulos.php | 8 ++++---- src/Entity/Pagina.php | 8 ++++---- src/Entity/Productovariantes.php | 4 ++-- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/Entity/Comentarios.php b/src/Entity/Comentarios.php index ae4b716..545a1d0 100644 --- a/src/Entity/Comentarios.php +++ b/src/Entity/Comentarios.php @@ -31,9 +31,9 @@ class Comentarios /** * @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 diff --git a/src/Entity/Facturas.php b/src/Entity/Facturas.php index 15cb121..be48f9f 100644 --- a/src/Entity/Facturas.php +++ b/src/Entity/Facturas.php @@ -24,9 +24,9 @@ class Facturas /** * @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 @@ -52,21 +52,21 @@ class Facturas /** * @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; /** * @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; /** * @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; diff --git a/src/Entity/Formularios.php b/src/Entity/Formularios.php index b767621..f5a9990 100644 --- a/src/Entity/Formularios.php +++ b/src/Entity/Formularios.php @@ -45,16 +45,16 @@ class Formularios /** * @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 * - * @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 diff --git a/src/Entity/Modulos.php b/src/Entity/Modulos.php index 31dd453..26cb939 100644 --- a/src/Entity/Modulos.php +++ b/src/Entity/Modulos.php @@ -52,16 +52,16 @@ class Modulos /** * @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 * - * @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 { diff --git a/src/Entity/Pagina.php b/src/Entity/Pagina.php index 46e66ba..c721f19 100644 --- a/src/Entity/Pagina.php +++ b/src/Entity/Pagina.php @@ -52,16 +52,16 @@ class Pagina /** * @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 * - * @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 diff --git a/src/Entity/Productovariantes.php b/src/Entity/Productovariantes.php index bdfb312..bd0b0df 100644 --- a/src/Entity/Productovariantes.php +++ b/src/Entity/Productovariantes.php @@ -38,9 +38,9 @@ class Productovariantes /** * @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