Files
autoAiWorkSys/_script/add_authorization_fields_simple.sql
张成 6e5c35f144 1
2025-12-15 18:36:20 +08:00

13 lines
531 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 为 pla_account 表添加授权相关字段(简化版)
-- 执行时间2025-01-XX
-- 说明:如果字段已存在会报错,可以先执行上面的版本(带检查的版本)
-- 添加授权日期字段
ALTER TABLE `pla_account`
ADD COLUMN `authorization_date` DATETIME NULL COMMENT '授权日期(授权开始时间)' AFTER `active_actions`;
-- 添加授权天数字段
ALTER TABLE `pla_account`
ADD COLUMN `authorization_days` INT(11) NOT NULL DEFAULT 0 COMMENT '授权天数' AFTER `authorization_date`;