Files
tyapi-server/scripts/drop_original_price_column.sql
2026-01-16 18:37:47 +08:00

18 lines
662 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.

-- 删除 component_report_downloads 表中的 original_price 字段
-- 执行时间: 2026-01-16
-- 检查字段是否存在,如果存在则删除
-- 注意:不同数据库的语法可能不同,请根据实际使用的数据库调整
-- PostgreSQL 语法
ALTER TABLE component_report_downloads DROP COLUMN IF EXISTS original_price;
-- MySQL 语法(如果使用 MySQL
-- ALTER TABLE component_report_downloads DROP COLUMN original_price;
-- 验证:查询表结构确认字段已删除
-- SELECT column_name, data_type
-- FROM information_schema.columns
-- WHERE table_name = 'component_report_downloads'
-- AND column_name = 'original_price';