Cita:
Iniciado por destor77
perdón por la insistencia, pero yo veo que mando una sola sql:
o no queda otra que armar un sql por cada tabla a crear (lo que me parece ilogico...)
salu2
Lo que dice GatorV es verdad.
Pero respecto a lo que te decia antes, los sql teminan con punto y coma. Osea que vos tenes 3 sql
1 -
CREATE TABLE actualizaciones (
id int(11) NOT NULL AUTO_INCREMENT,
seccion varchar(255) NOT NULL,
actualizacion datetime NOT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
2 -
CREATE TABLE core_configuracion (
id int(11) NOT NULL,
titulo varchar(255) NOT NULL,
descripcion text,
keywords text,
email varchar(255) DEFAULT NULL,
user_email varchar(255) DEFAULT NULL,
pass_email varchar(255) DEFAULT NULL,
host_email varchar(255) DEFAULT NULL,
port_email varchar(255) DEFAULT NULL,
themes varchar(255) DEFAULT NULL,
lenguajes_id int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (titulo,lenguajes_id),
KEY fk_core_configuracion_core_lenguajes1 (lenguajes_id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='contiene la configuración del sitio';
3-
CREATE TABLE core_errores (
id int(11) NOT NULL AUTO_INCREMENT,
fecha datetime DEFAULT NULL,
error text,
cod_error varchar(80) DEFAULT NULL,
linea int(11) DEFAULT NULL,
accion varchar(255) DEFAULT NULL,
controlador varchar(255) DEFAULT NULL,
core_users_id int(11) NOT NULL,
PRIMARY KEY (id,core_users_id),
KEY fk_core_errores_core_users1 (core_users_id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='contiene los errores generados' AUTO_INCREMENT=1 ;