抢购物品数据库表里增加当前一页

This commit is contained in:
2026-05-30 11:58:41 +08:00
parent 4fb389ea3a
commit cfcbde95dd
7 changed files with 66 additions and 12 deletions

View File

@@ -14,7 +14,8 @@ CREATE TABLE `lb_goods` (
`quantity` VARCHAR(64) DEFAULT NULL COMMENT '数量描述≈6盒',
`seller_id` BIGINT DEFAULT NULL COMMENT '卖家用户ID',
`is_show` TINYINT NOT NULL DEFAULT 1 COMMENT '是否展示0否 1是',
`status` TINYINT NOT NULL DEFAULT 1 COMMENT '状态',
`status` TINYINT NOT NULL DEFAULT -1 COMMENT '状态',
`current_page` INT DEFAULT NULL COMMENT '当前页码(同步来源页)',
`created_at` DATETIME DEFAULT NULL COMMENT '创建时间',
`updated_at` DATETIME DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,

View File

@@ -0,0 +1,8 @@
-- =============================================================================
-- 升级脚本:为 lb_goods 表增加 current_page 列
-- =============================================================================
SET NAMES utf8mb4;
ALTER TABLE `lb_goods`
ADD COLUMN `current_page` INT NULL DEFAULT NULL COMMENT '当前页码(同步来源页)' AFTER `status`;

View File

@@ -0,0 +1,8 @@
-- =============================================================================
-- 升级脚本lb_goods.status 默认值改为 -1
-- =============================================================================
SET NAMES utf8mb4;
ALTER TABLE `lb_goods`
MODIFY COLUMN `status` TINYINT NOT NULL DEFAULT -1 COMMENT '状态';