Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sql/schema/chii_crt_comments.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CREATE TABLE `chii_crt_comments` (
`crt_pst_mid` mediumint(8) unsigned NOT NULL COMMENT '关联人物ID',
`crt_pst_uid` mediumint(8) unsigned NOT NULL,
`crt_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0',
`crt_pst_related_photo` mediumint(8) unsigned NOT NULL,
`crt_pst_dateline` int(10) unsigned NOT NULL,
`crt_pst_content` mediumtext CHARACTER SET utf8 NOT NULL,
`crt_pst_state` tinyint(1) unsigned NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions sql/schema/chii_prsn_comments.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CREATE TABLE `chii_prsn_comments` (
`prsn_pst_mid` mediumint(8) unsigned NOT NULL COMMENT '关联人物ID',
`prsn_pst_uid` mediumint(8) unsigned NOT NULL,
`prsn_pst_related` mediumint(8) unsigned NOT NULL DEFAULT '0',
`prsn_pst_related_photo` mediumint(8) unsigned NOT NULL,
`prsn_pst_dateline` int(10) unsigned NOT NULL,
`prsn_pst_content` mediumtext NOT NULL,
`prsn_pst_state` tinyint(1) unsigned NOT NULL,
Expand Down
50 changes: 50 additions & 0 deletions sql/schema/chii_subject_photos.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
-- MySQL dump 10.13 Distrib 8.0.32, for Linux (x86_64)
--
-- ------------------------------------------------------
-- Server version 5.7.33-0ubuntu0.16.04.1-log

/*!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 */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `chii_subject_photos`
--

DROP TABLE IF EXISTS `chii_subject_photos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `chii_subject_photos` (
`sbj_photo_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`sbj_photo_type` tinyint(3) unsigned NOT NULL,
`sbj_photo_mid` mediumint(8) unsigned NOT NULL,
`sbj_photo_uid` mediumint(8) unsigned NOT NULL,
`sbj_photo_target` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`sbj_photo_title` varchar(1024) CHARACTER SET utf8mb4 NOT NULL,
`sbj_photo_comment` mediumtext CHARACTER SET utf8mb4 NOT NULL,
`sbj_photo_tags` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`sbj_photo_spoiler` tinyint(3) unsigned NOT NULL,
`sbj_photo_dateline` int(10) unsigned NOT NULL,
`sbj_photo_lasttouch` int(10) unsigned NOT NULL,
`sbj_photo_lastpost` int(10) unsigned NOT NULL,
`sbj_photo_ban` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`sbj_photo_id`),
KEY `sbj_photo_uid` (`sbj_photo_uid`),
KEY `sbj_photo_mid` (`sbj_photo_type`,`sbj_photo_mid`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed
1 change: 1 addition & 0 deletions sql_script_load_order.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ sql/schema/chii_subjects_240921.sql
sql/schema/chii_subject_alias.sql
sql/schema/chii_subject_fields.sql
sql/schema/chii_subject_imgs.sql
sql/schema/chii_subject_photos.sql
sql/schema/chii_subject_interests.sql
sql/schema/chii_subject_posts.sql
sql/schema/chii_subject_rec.sql
Expand Down
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def check_sql_scripts(sql_scripts: list[str]):
"chii_rev_text",
"chii_subject_alias",
"chii_subject_imgs",
"chii_subject_photos",
"chii_subject_fields",
"chii_subject_interests",
"chii_subject_posts",
Expand Down
Loading