<?php
//データを追加するテーブルの一覧と、そのSQL
//実行はカラムがあるかどうかを判定してから行う
$tableinsertdatalist = array(
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_admin_config",
                "columnname" => "name",
                "columndata" => "SKIN_FOLDER",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_admin_config` (`name`, `value`) VALUES ('SKIN_FOLDER', 'default');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_tags",
                "columnname" => "c_tags_name",
                "columndata" => "その他",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_tags` (`c_tags_name`,`c_member_id`) VALUES ('その他','1');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_display_view",
                "columnname" => "c_display_name",
                "columndata" => "ノーマル画面",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_display_view` (`c_display_name`,`is_pc`,`is_money_flag`,`template_foldername`) values ('ノーマル画面','0','0','') ;",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_display_view",
                "columnname" => "c_display_name",
                "columndata" => "サムネイル付き画面",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_display_view` (`c_display_name`,`is_pc`,`is_money_flag`,`template_foldername`) values ('サムネイル付き画面','0','0','new_templates');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_display_view",
                "columnname" => "c_display_name",
                "columndata" => "Mixi風画面",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_display_view` (`c_display_name`,`is_pc`,`is_money_flag`,`template_foldername`) values ('Mixi風画面','1','0','new_templates');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_display_view",
                "columnname" => "c_display_name",
                "columndata" => "携帯用ライトページ",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_display_view` (`c_display_name`,`is_pc`,`is_money_flag`,`template_foldername`) values ('携帯用ライトページ','0','0','light_templates');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_siteadmin",
                "columnname" => "target",
                "columndata" => "o_sns_help",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_siteadmin` VALUES ('', 'o_sns_help', '', NOW());",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_siteadmin",
                "columnname" => "target",
                "columndata" => "h_sns_help",
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_siteadmin` VALUES ('', 'h_sns_help', '', NOW());",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_siteadmin",
                "columnname" => "target",
                "columndata" => 'inc_side_menu',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_siteadmin` VALUES ('', 'inc_side_menu', '<img src=\"skin/default/img/icon_3.gif\" align=\"absmiddle\" style=\"margin-right:5px\"><a href=\"?m=pc&amp;a=page_h_config_prof\" target=\"_top\">プロフィールを設定しましょう</a><br>\r\n<img src=\"skin/default/img/icon_3.gif\" align=\"absmiddle\" style=\"margin-right:5px\"><a href=\"?m=pc&amp;a=page_h_diary_list_all\" target=\"_top\">全体の最新日記をチェック</a><br>', NOW());",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '1',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (1,'default','FFFFFF','B7B9C6','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','B7B9C6','FFFFFF','FFFFFF','FFFFFF','FFFFFF','B7B9C6','FFFFFF','FFFFFF','B7B9C6','FFFFFF','B7B9C6','B7B9C6','FFFFFF','FFFFFF','B7B9C6','C1C6CF','FFFFFF','E9EAF0','戻す','E9EAF0');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '2',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (2,'red','FFFFFF','DCAA9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','DCAA9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','DCAA9D','FFFFFF','FFFFFF','DCAA9D','FFFFFF','DCAA9D','DCAA9D','FFFFFF','FFFFFF','DCAA9D','E5A6A6','FFFFFF','FAE1DB','赤','E66161');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '3',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (3,'yellow','FFFFFF','E9DC90','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','E9DC90','FFFFFF','FFFFFF','FFFFFF','FFFFFF','E9DC90','FFFFFF','FFFFFF','E9DC90','FFFFFF','E9DC90','E9DC90','FFFFFF','FFFFFF','E9DC90','F2D299','FFFFFF','FFF9D6','黄色','FFDE1E');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '4',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (4,'green','FFFFFF','AEDC9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','AEDC9D','FFFFFF','FFFFFF','FFFFFF','FFFFFF','AEDC9D','FFFFFF','FFFFFF','AEDC9D','FFFFFF','AEDC9D','AEDC9D','FFFFFF','FFFFFF','AEDC9D','C5E5A6','FFFFFF','E3FADB','緑','6FDD46');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '5',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (5,'gold','FFFFFF','C6C4B7','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C6C4B7','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C6C4B7','FFFFFF','FFFFFF','C6C4B7','FFFFFF','C6C4B7','C6C4B7','FFFFFF','FFFFFF','C6C4B7','CFCAC1','FFFFFF','F0EFE9','黄金','DEC079');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '6',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (6,'water','FFFFFF','95CEEA','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','95CEEA','FFFFFF','FFFFFF','FFFFFF','FFFFFF','95CEEA','FFFFFF','FFFFFF','95CEEA','FFFFFF','95CEEA','95CEEA','FFFFFF','FFFFFF','95CEEA','9BE6F0','FFFFFF','D6F2FF','水色','2BD1E7');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '7',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (7,'purple','FFFFFF','C29EE3','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C29EE3','FFFFFF','FFFFFF','FFFFFF','FFFFFF','C29EE3','FFFFFF','FFFFFF','C29EE3','FFFFFF','C29EE3','C29EE3','FFFFFF','FFFFFF','C29EE3','BCA7EC','FFFFFF','EEDCFE','紫','8A1EEA');",
                ),
            ),
            array('action' => 'INSERT INTO',
            'data' => array(
                "name" => "c_sns_config",
                "columnname" => "c_sns_config_id ",
                "columndata" => '8',
                "sql" => "INSERT INTO `".MYNETS_PREFIX_NAME."c_sns_config` VALUES (8,'default','FFFFFF','B7B9C6','FFFFFF','FFFFFF','FFFFFF','FFFFFF','FFFFFF','B7B9C6','FFFFFF','FFFFFF','FFFFFF','FFFFFF','B7B9C6','FFFFFF','FFFFFF','B7B9C6','FFFFFF','B7B9C6','B7B9C6','FFFFFF','FFFFFF','B7B9C6','C1C6CF','FFFFFF','E9EAF0','初期設定','E9EAF0');",
                ),
            ),
);

//強制実行INSERTSQL文
//今後変更する可能性あり。。。
$runinsertsql = array(
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (1,'Books','和書',1);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (2,'ForeignBooks','洋書',2);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (3,'Music','CDポピュラー',3);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (4,'Classical','CDクラシック',4);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (5,'DVD','DVD',5);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (6,'VideoGames','ゲーム',6);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (7,'Software','ソフトウェア',7);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (8,'Electronics','エレクトロニクス',8);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (9,'Kitchen','キッチン',9);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (10,'Toys','おもちゃ＆ホビー',10);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (11,'SportingGoods','スポーツ',11);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (12,'HealthPersonalCare','ヘルス＆ビューティー',12);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (13,'Watches','時計',13);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (14,'Baby','ベビー＆マタニティ',14);",
    "INSERT INTO `" .MYNETS_PREFIX_NAME. "c_review_category` VALUES (15,'Apparel','アパレル＆シューズ',15);",
)
?>
