gr_device 필드 없으면 추가

This commit is contained in:
gnuboard committed 2013-02-27 11:50:41 +09:00
1 parent 0f9c947fea
commit 6440cdf5a4
1 file changed
+4
+4
View File
@@ -20,6 +20,10 @@ if ($w == '') {
else
alert('제대로 된 값이 넘어오지 않았습니다.');
if (!isset($group['gr_device'])) {
sql_query(" ALTER TABLE `{$g4['group_table']}` ADD `gr_device` ENUM('both','pc','mobile') NOT NULL DEFAULT 'both' AFTER `gr_subject` ", false);
}
if (!isset($group['gr_show_menu'])) {
sql_query(" ALTER TABLE `{$g4['group_table']}` ADD `gr_show_menu` TINYINT NOT NULL DEFAULT '0' AFTER `gr_use_access`, ADD `gr_order` INT NOT NULL DEFAULT '0' AFTER `gr_show_menu` ", false);
}