From 228fc6d2d133509104bed522eda3683f4447c61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Sat, 22 Feb 2014 03:36:02 +0100 Subject: [PATCH] =?UTF-8?q?ref=20#3=20Cambiada=20la=20definici=C3=B3n=20de?= =?UTF-8?q?=20la=20base=20de=20datos=20en=20setup.=20Quitar=20tipo=20datet?= =?UTF-8?q?ime=20en=20elementos=20para=20fecha=20de=20compra=20y=20dejar?= =?UTF-8?q?=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/inv2.sql | 4 ++-- sql/setup.sql | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sql/inv2.sql b/sql/inv2.sql index b99181b..c749fae 100644 --- a/sql/inv2.sql +++ b/sql/inv2.sql @@ -55,7 +55,7 @@ CREATE TABLE `Elementos` ( `id_Ubicacion` smallint(5) unsigned NOT NULL COMMENT 'foreign(Ubicaciones;id),ordenable', `numserie` varchar(30) default NULL COMMENT 'ordenable', `cantidad` int(10) unsigned default NULL COMMENT 'ordenable', - `fechaCompra` datetime NOT NULL COMMENT 'ordenable', + `fechaCompra` date NOT NULL COMMENT 'ordenable', PRIMARY KEY (`id`), KEY `id` (`id`), KEY `id_Articulo` (`id_Articulo`), @@ -108,7 +108,7 @@ SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `Usuarios` ( `id` int(10) unsigned NOT NULL auto_increment, - `nombre` varchar(8) NOT NULL default '', + `nombre` varchar(16) NOT NULL default '', `clave` varchar(32) NOT NULL default '', `idSesion` varchar(20) NOT NULL default '', `alta` tinyint(1) NOT NULL default '0', diff --git a/sql/setup.sql b/sql/setup.sql index a33e01f..e73a0af 100644 --- a/sql/setup.sql +++ b/sql/setup.sql @@ -23,7 +23,7 @@ SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `Articulos` ( `id` smallint(6) NOT NULL auto_increment, - `descripcion` varchar(60) NOT NULL COMMENT 'ordenable', + `descripcion` varchar(60) NOT NULL COMMENT 'ordenable,link/Articulo', `marca` varchar(20) default NULL COMMENT 'ordenable', `modelo` varchar(20) default NULL COMMENT 'ordenable', `cantidad` int(11) default NULL COMMENT 'ordenable', @@ -45,7 +45,7 @@ CREATE TABLE `Elementos` ( `id_Ubicacion` smallint(5) unsigned NOT NULL COMMENT 'foreign(Ubicaciones;id),ordenable', `numserie` varchar(30) default NULL COMMENT 'ordenable', `cantidad` int(10) unsigned default NULL COMMENT 'ordenable', - `fechaCompra` datetime NOT NULL COMMENT 'ordenable', + `fechaCompra` date NOT NULL COMMENT 'ordenable', PRIMARY KEY (`id`), KEY `id` (`id`), KEY `id_Articulo` (`id_Articulo`), @@ -65,7 +65,7 @@ SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `Ubicaciones` ( `id` smallint(5) unsigned NOT NULL auto_increment, - `Descripcion` varchar(30) NOT NULL COMMENT 'ordenable', + `Descripcion` varchar(30) NOT NULL COMMENT 'ordenable,link/Ubicacion', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=184 DEFAULT CHARSET=latin1; SET character_set_client = @saved_cs_client;