CNCEC_SUBQHSE_WUHUAN/DataBase/版本日志/SUBQHSE_V2024-10-16-phf.sql

42 lines
2.0 KiB
Transact-SQL

alter table Environmental_OperationReport drop column Code
alter table Environmental_OperationReport drop column UnitLevel
alter table Environmental_OperationReport drop column CreateDate
alter table Environmental_OperationReport drop column Place
alter table Environmental_OperationReport drop column PersonNum
alter table Environmental_OperationReport drop column TotalAssets
alter table Environmental_OperationReport drop column TotalValue
alter table Environmental_OperationReport drop column NewInvestment
GO
CREATE TABLE [dbo].[Environmental_OperationReportItem](
[BusinessReportItemId] [nvarchar](50) NOT NULL,
[BusinessReportId] [nvarchar](50) NULL,
[SortIndex] [int] NULL,
[Code] [nvarchar](50) NULL,
[UnitLevel] [nvarchar](50) NULL,
[CreateDate] [datetime] NULL,
[Place] [nvarchar](200) NULL,
[PersonNum] [int] NULL,
[TotalAssets] [decimal](18, 4) NULL,
[TotalValue] [decimal](18, 4) NULL,
[NewInvestment] [decimal](18, 4) NULL,
[UnitName] [nvarchar](200) NULL,
[SortUnitName] [nvarchar](200) NULL,
CONSTRAINT [PK_Environmental_OperationReportItem] PRIMARY KEY CLUSTERED
(
[BusinessReportItemId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Environmental_OperationReportItem] WITH CHECK ADD CONSTRAINT [FK_Environmental_OperationReportItem_Environmental_OperationReport] FOREIGN KEY([BusinessReportId])
REFERENCES [dbo].[Environmental_OperationReport] ([BusinessReportId])
GO
ALTER TABLE [dbo].[Environmental_OperationReportItem] CHECK CONSTRAINT [FK_Environmental_OperationReportItem_Environmental_OperationReport]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'中央企业节能环保产业企业基本情况和经营情况报表明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReportItem'
GO
update sys_menu set IsUsed=0 where menuid='EFA6E45F-1267-4804-BEE7-41E0C5461204';