PR

告知パーツ表示 #3327

wada opened this at 2024-01-17T18:05:39; closed

Description

opened by wada at 2024-01-17T18:05:39; updated 2024-02-02T10:45:14

概要

https://trello.com/c/6LWh7XGb/211-%E5%91%8A%E7%9F%A5%E3%83%91%E3%83%BC%E3%83%84%E7%99%BB%E9%8C%B2%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%B8

管理画面から登録した告知パーツの表示対応

新規テーブル

CREATE TABLE `master_official_info_parts` (
  `id` int(11) NOT NULL,
  `text` char(255) COLLATE utf8_unicode_ci NOT NULL,
  `array_key` char(255) COLLATE utf8_unicode_ci NOT NULL,
  `body_sp` text COLLATE utf8_unicode_ci NOT NULL,
  `body_fp` text CHARACTER SET ujis NOT NULL,
  `start_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `end_time` datetime NOT NULL DEFAULT '2037-12-31 23:59:59',
  `platform_type` tinyint(4) NOT NULL,
  `open_flg` tinyint(4) NOT NULL DEFAULT '0',
  `reg_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;


ALTER TABLE `master_official_info_parts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `array_key` (`array_key`),
  ADD KEY `open_flg` (`open_flg`,`start_time`,`end_time`) USING BTREE;

ALTER TABLE `master_official_info_parts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

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

テーブル追加
管理画面から告知パーツを登録
告知に告知パーツテキストを記載
ゲーム側から告知確認

Comment

#32932 by wada at 2024-01-17T18:05:47; updated 2024-01-17T18:05:47

@kouho
レビューお願いします。

kouho add_label at 2024-01-31T17:19:32: 皇甫 LGTM

Comment

#33046 by kouho at 2024-01-31T17:19:40; updated 2024-01-31T17:19:40

@wada
確認OKです

wada merge at 2024-02-02T10:45:11: 告知パーツ表示
wada close at 2024-02-02T10:45:11: Close
wada delete_branch at 2024-02-02T10:45:14: info_parts

Commit range

base1eb18083d474ce3e0f6c4a929302d43d175a48c3
heada0fcbcfd125a1f24f0d6cc0b641188080f0eb9e7
base branchjolly/jr-web:master
head branchjolly/jr-web:info_parts

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed1 filesView patch
statusfile
modifiedlib/ajax/default_info.inc
Patch body is stored as a separate file to keep this page lightweight.