From cb60002928710b444e12de4814438518c284756f Mon Sep 17 00:00:00 2001 From: Awais-cb Date: Wed, 13 Dec 2017 11:49:54 +0500 Subject: [PATCH] Modified:replaced sql engine from MyISAM to InnoDB --- sql/groups.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/groups.sql b/sql/groups.sql index fccc9833..d2a677ee 100644 --- a/sql/groups.sql +++ b/sql/groups.sql @@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS `groups` ( `date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `active` enum('yes','no') NOT NULL, PRIMARY KEY (`group_id`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ; CREATE TABLE IF NOT EXISTS `group_categories` ( `category_id` int(225) NOT NULL AUTO_INCREMENT, @@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `group_categories` ( `category_thumb` mediumtext NOT NULL, `isdefault` enum('yes','no') NOT NULL DEFAULT 'no', PRIMARY KEY (`category_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ; CREATE TABLE IF NOT EXISTS `group_members` ( `group_mid` int(225) NOT NULL AUTO_INCREMENT, @@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS `group_members` ( `date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `active` enum('yes','no') NOT NULL DEFAULT 'yes', PRIMARY KEY (`group_mid`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ; CREATE TABLE IF NOT EXISTS `group_stats` ( `id` int(255) NOT NULL AUTO_INCREMENT, @@ -40,4 +40,4 @@ CREATE TABLE IF NOT EXISTS `group_stats` ( `total_topics` int(255) NOT NULL, `total_posts` int(255) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; \ No newline at end of file