-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add api for index #946
Open
everpcpc
wants to merge
6
commits into
bangumi:master
Choose a base branch
from
everpcpc:feat-index
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #946 +/- ##
==========================================
+ Coverage 76.09% 76.28% +0.19%
==========================================
Files 133 135 +2
Lines 16094 16299 +205
Branches 972 995 +23
==========================================
+ Hits 12247 12434 +187
- Misses 3837 3855 +18
Partials 10 10 ☔ View full report in Codecov by Sentry. |
目录这边有数据库变动,需要先更新一下dev-env |
普通目录要限制一下 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- 数据库: `bangumi`
--
-- --------------------------------------------------------
--
-- 表的结构 `chii_index`
--
CREATE TABLE `chii_index` (
`idx_id` mediumint(8) NOT NULL COMMENT '自动id',
`idx_type` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
`idx_title` varchar(80) NOT NULL COMMENT '标题',
`idx_desc` mediumtext NOT NULL COMMENT '简介',
`idx_replies` mediumint(8) UNSIGNED NOT NULL DEFAULT '0' COMMENT '回复数',
`idx_subject_total` mediumint(8) UNSIGNED NOT NULL DEFAULT '0' COMMENT '内含条目总数',
`idx_collects` mediumint(8) NOT NULL DEFAULT '0' COMMENT '收藏数',
`idx_stats` mediumtext NOT NULL,
`idx_award` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
`idx_dateline` int(10) NOT NULL COMMENT '创建时间',
`idx_lasttouch` int(10) UNSIGNED NOT NULL,
`idx_uid` mediumint(8) NOT NULL COMMENT '创建人UID',
`idx_ban` tinyint(1) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转储表的索引
--
--
-- 表的索引 `chii_index`
--
ALTER TABLE `chii_index`
ADD UNIQUE KEY `mid` (`idx_id`),
ADD KEY `idx_ban` (`idx_ban`),
ADD KEY `idx_type` (`idx_type`),
ADD KEY `idx_uid` (`idx_uid`),
ADD KEY `idx_collects` (`idx_collects`),
ADD KEY `idx_award` (`idx_award`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `chii_index`
--
ALTER TABLE `chii_index`
MODIFY `idx_id` mediumint(8) NOT NULL AUTO_INCREMENT COMMENT '自动id';
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.