From 798d0948d180282d2d9704727ee0d9c3176a46b9 Mon Sep 17 00:00:00 2001 From: tobi132 Date: Thu, 17 Oct 2019 23:39:30 +0200 Subject: [PATCH] tinyint is better for sticked and closed --- install/includes/schema.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/includes/schema.sql b/install/includes/schema.sql index cb4d1bd0..db7cefc3 100644 --- a/install/includes/schema.sql +++ b/install/includes/schema.sql @@ -114,8 +114,8 @@ CREATE TABLE `myaac_forum` `last_edit_aid` int(20) NOT NULL default '0', `edit_date` int(20) NOT NULL default '0', `post_ip` varchar(32) NOT NULL default '0.0.0.0', - `sticked` INT(11) NOT NULL DEFAULT '0', - `closed` INT(11) NOT NULL DEFAULT '0', + `sticked` tinyint(1) NOT NULL DEFAULT '0', + `closed` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `section` (`section`) ) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;