microservices/sql/update/20230824101818_create_versi...

8 lines
456 B
SQL
Raw 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.

-- 创建版本表用于记录已执行的SQL脚本信息
CREATE TABLE sys_version
(
id INT AUTO_INCREMENT PRIMARY KEY COMMENT '记录ID自增长',
execute_time DATETIME NOT NULL COMMENT 'SQL脚本执行时间',
current_version VARCHAR(255) NOT NULL COMMENT '当前更新的SQL版本号',
remarks VARCHAR(255) COMMENT 'SQL脚本备注信息'
) COMMENT '版本表用于记录已执行的SQL脚本信息';