Quiero deshacer un par de consultas SQL para desinstalar completamente unos MODs:
SQL
Código: Seleccionar todo
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `phpbb_thanks`;
CREATE TABLE `phpbb_thanks` (
`post_id` mediumint(8) NOT NULL default '0',
`user_id` mediumint(8) NOT NULL default '0',
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM;
SET FOREIGN_KEY_CHECKS = 1;
SQL
Código: Seleccionar todo
CREATE TABLE `phpbb_thanks` (
`thanks_id` mediumint(8) unsigned NOT NULL auto_increment,
`thanks_from` mediumint(8) unsigned NOT NULL,
`thanks_to` mediumint(8) unsigned NOT NULL,
`post_id` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`thanks_id`)
);
ALTER TABLE `phpbb_posts` ADD `post_thanked` INT(11) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `phpbb_users` ADD `user_thanked` INT(11) UNSIGNED NOT NULL DEFAULT '0',
ADD `user_thanks` INT(11) UNSIGNED NOT NULL DEFAULT '0',
ADD `user_thanks_post` INT(11) UNSIGNED NOT NULL DEFAULT '0';
¿Cual sería la forma correcta de hacerlo?
Muchas gracias
Besitos
