From 3559164a486511076c6e2b052aa91f457c66ac58 Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 28 May 2013 17:59:15 +0900 Subject: [PATCH] =?UTF-8?q?wr=5Fsns=20=ED=95=84=EB=93=9C=EA=B0=80=20?= =?UTF-8?q?=EC=97=86=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=ED=95=98=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_form.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adm/board_form.php b/adm/board_form.php index 6f93ed274..2557f915a 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -51,6 +51,11 @@ if (!isset($board['bo_use_cert'])) { if (!isset($board['bo_use_sns'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_use_sns` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_cert` ", false); + + $result = sql_query(" select bo_table from `{$g4['board_table']}` "); + for ($i=0; $row=sql_fetch_array($result); $i++) { + sql_query(" ALTER TABLE `{$g4['write_prefix']}{$row['bo_table']}` ADD `wr_sns` SET( 'fb', 'tw', 'me', 'gp' ) NOT NULL AFTER `wr_ip` ", false); + } } sql_query(" ALTER TABLE `{$g4['board_table']}` CHANGE `bo_use_cert` `bo_use_cert` ENUM('','cert','adult') NOT NULL DEFAULT '' ", false);