Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/09/2005, 04:39
Avatar de metacortex
metacortex
Viejo demente
 
Fecha de Ingreso: junio-2004
Ubicación: Caracas - Venezuela
Mensajes: 9.027
Antigüedad: 19 años, 11 meses
Puntos: 832
2ª Parte. Modificaciones a la Base de Datos.

2ª Parte. Modificaciones a la Base de Datos.

Asumimos que en este punto tienes respaldada tu Base de Datos. Si no has ejecutado el respaldo tómate un momento para hacerlo. Reiteramos que lo mejor es practicar en tu servidor Apache con un portal nuevo de prueba, si es posible repitiendo la práctica y luego llevando las modificaciones a tu sitio web.

Código:
CREATE TABLE `mkp_articulos` (
  `id` int(11) NOT NULL auto_increment,
  `idcategoria` int(10) NOT NULL default '0',
  `idautore` int(10) NOT NULL default '0',
  `titolo` varchar(255) NOT NULL default '',
  `autore` varchar(34) NOT NULL default '',
  `testo` text NOT NULL,
  `data` int(10) NOT NULL default '0',
  `validate` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=6 ;




CREATE TABLE `mkp_articulos_sections` (
  `id` int(10) NOT NULL auto_increment,
  `titolo` varchar(40) NOT NULL default '',
  `icona` varchar(255) NOT NULL default '',
  `position` int(4) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;



INSERT INTO `mkp_articulos_sections` VALUES (1, 'Annunci', '1', 0);



INSERT INTO `mkp_config` (`chiave`, `valore`) VALUES ('articulos_page', '10');
INSERT INTO `mkp_config` (`chiave`, `valore`) VALUES ('articulos_block', '10');
INSERT INTO `mkp_config` (`chiave`, `valore`) VALUES ('approval_articulos', '0');
INSERT INTO `mkp_config` (`chiave`, `valore`) VALUES ('mod_articulos', '');
INSERT INTO `mkp_config` (`chiave`, `valore`) VALUES ('articulos_html', '');
INSERT INTO `mkp_config` (`chiave`, `valore`) VALUES ('articulos_words', '');



ALTER TABLE `mkp_pgroups` ADD `g_send_articulos` tinyint(1) NOT NULL default '0';
ALTER TABLE `mkp_pgroups` ADD `g_mod_articulos` tinyint(1) NOT NULL default '0';




CREATE TABLE `mkp_articulos_comments` (
  `id` int(10) NOT NULL auto_increment,
  `identry` int(10) NOT NULL default '0',
  `autore` varchar(255) NOT NULL default '',
  `testo` text NOT NULL,
  `data` int(10) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;



INSERT INTO `mkp_blocks` VALUES ('', 'articulos.php', 'Articulos', 'centro', 1, 'checked', 0, '', '');

Última edición por metacortex; 02/09/2005 a las 00:02