PR

【6/1】パイレーツグランプリ:デッキ集計 #4690

wada opened this at 2026-05-29T17:13:17; open

Description

opened by wada at 2026-05-29T17:13:17; updated 2026-05-29T17:13:28

概要

集計系のPRをマージ
管理画面側の修正対応は集計後対応

マージPR

  • 13899【8/14】【管理】パイレーツグランプリ:ユーザー検索
  • 14024【9/24】【管理】パイレーツグランプリ:デッキ設定カード集計
  • 14037【9/26】【管理】パイレーツグランプリ:プレイヤーのデッキ情報
  • 14061【即日】【管理】パイレーツグランプリ:デッキ一覧の用途表記修正とアップずらTO

cron

0 17 * * * ENVIRONMENT=${JR_ENV} PF=yamada ${JR_DIR}/lib/exec/tool_pirate_grandprix_used_card.sh
0 17 * * * ENVIRONMENT=${JR_ENV} PF=gesoten ${JR_DIR}/lib/exec/tool_pirate_grandprix_used_card.sh

新テーブル

CREATE TABLE `jrye_cpanel`.`cpanel_daily_pirate_grandprix_deck_card` (
  `date` date NOT NULL,
  `dock` tinyint NOT NULL,
  `category` tinyint NOT NULL COMMENT '1予選、2本戦',
  `card_no` int NOT NULL,
  `skill_type` tinyint NOT NULL COMMENT '専用スキルのタイプ',
  `count` int NOT NULL COMMENT '装備枚数',
  `uu` mediumint NOT NULL COMMENT '装備者ユニーク'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 
ALTER TABLE `jrye_cpanel`.`cpanel_daily_pirate_grandprix_deck_card`
  ADD PRIMARY KEY (`date`,`dock`,`category`,`card_no`) USING BTREE,
  ADD KEY `dock` (`dock`,`category`);
 
CREATE TABLE `jrye_cpanel_gesoten`.`cpanel_daily_pirate_grandprix_deck_card` (
  `date` date NOT NULL,
  `dock` tinyint NOT NULL,
  `category` tinyint NOT NULL COMMENT '1予選、2本戦',
  `card_no` int NOT NULL,
  `skill_type` tinyint NOT NULL COMMENT '専用スキルのタイプ',
  `count` int NOT NULL COMMENT '装備枚数',
  `uu` mediumint NOT NULL COMMENT '装備者ユニーク'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 
ALTER TABLE `jrye_cpanel_gesoten`.`cpanel_daily_pirate_grandprix_deck_card`
  ADD PRIMARY KEY (`date`,`dock`,`category`,`card_no`) USING BTREE,
  ADD KEY `dock` (`dock`,`category`);

テスト方法、確認した内容

Comment

#46413 by wada at 2026-05-29T17:13:28; updated 2026-05-29T17:13:28

@noda
レビューお願いします

Commit range

base9efdd5b5aedfa3b0c28fea97e44fb5d9c98a2bd4
head9cc449752fe14239249b8faf289e57d299bf2624
base branchjolly/jr-web:master
head branchjolly/jr-web:cpanel_pirate_grandprix

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed13 filesView patch
statusfile
modifiedcpanel_html/ajax.php
modifiedcpanel_html/index.php
modifiedcpanel_html/template/header.tpl
addedcpanel_html/template/m_daily_pirate_grandprix_deck_card.tpl
addeddatabase/migrate/2026052901_create_cpanel_daily_pirate_grandprix_deck_card.sql
addedlib/cpanel/ajax/m_daily_pirate_grandprix_deck_card_ajax.inc
addedlib/cpanel/m_daily_pirate_grandprix_deck_card.inc
addedlib/cpanel/m_user_detail_deck_pirate_grandprix.inc
modifiedlib/cpanel/m_user_detail_pirates_battle_list.inc
modifiedlib/cpanel/m_user_detail_pirates_battle_view.inc
modifiedlib/cpanel/m_user_info.inc
modifiedlib/exec/tool_pirate_grandprix_used_card.inc
addedlib/exec/tool_pirate_grandprix_used_card.sh
Patch body is stored as a separate file to keep this page lightweight.