Skip to content

Commit 8b2e92f

Browse files
committed
DateProcessed changed smalldatetime to date
1 parent 9e7b6c2 commit 8b2e92f

2 files changed

Lines changed: 101 additions & 1 deletion

File tree

sql/base/1_schema_tables.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ CREATE TABLE [dbo].[tblClaim](
756756
[Reinsured] [decimal](18, 2) NULL,
757757
[Valuated] [decimal](18, 2) NULL,
758758
[DateClaimed] [date] NOT NULL,
759-
[DateProcessed] [smalldatetime] NULL,
759+
[DateProcessed] [date] NULL,
760760
[Feedback] [bit] NOT NULL,
761761
[FeedbackID] [int] NULL,
762762
[Explanation] [ntext] NULL,

sql/migrations/1_migration_latest.sql

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3520,3 +3520,103 @@ GO
35203520
IF EXISTS(SELECT 1 FROM sys.indexes WHERE Name = N'missing_index_384' AND object_id = OBJECT_ID('tblClaimServices'))
35213521
ALTER INDEX [missing_index_384] ON [dbo].[tblClaimServices] DISABLE
35223522
GO
3523+
3524+
--OTC 697
3525+
DROP INDEX [missing_index_215] ON [dbo].[tblClaim]
3526+
GO
3527+
3528+
DROP INDEX [missing_index_218] ON [dbo].[tblClaim]
3529+
GO
3530+
3531+
DROP INDEX [missing_index_242] ON [dbo].[tblClaim]
3532+
GO
3533+
3534+
DROP INDEX [missing_index_245] ON [dbo].[tblClaim]
3535+
GO
3536+
3537+
DROP INDEX [missing_index_306] ON [dbo].[tblClaim]
3538+
GO
3539+
3540+
DROP INDEX [missing_index_4896] ON [dbo].[tblClaim]
3541+
GO
3542+
3543+
DROP INDEX [missing_index_50] ON [dbo].[tblClaim]
3544+
GO
3545+
3546+
DROP INDEX [NCI_tblClaim_DateProcessed] ON [dbo].[tblClaim]
3547+
GO
3548+
3549+
IF COL_LENGTH(N'tblClaim', N'DateProcessed') IS NOT NULL
3550+
ALTER TABLE tbLClaim
3551+
ALTER COLUMN DateProcessed DATE NULL
3552+
GO
3553+
3554+
CREATE NONCLUSTERED INDEX [missing_index_215] ON [dbo].[tblClaim]
3555+
(
3556+
[ClaimStatus] ASC,
3557+
[ValidityTo] ASC,
3558+
[DateProcessed] ASC
3559+
)
3560+
INCLUDE([ClaimCode]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3561+
GO
3562+
3563+
CREATE NONCLUSTERED INDEX [missing_index_218] ON [dbo].[tblClaim]
3564+
(
3565+
[ClaimStatus] ASC,
3566+
[ReviewStatus] ASC,
3567+
[ValidityTo] ASC,
3568+
[DateProcessed] ASC
3569+
)
3570+
INCLUDE([ClaimCode]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3571+
GO
3572+
3573+
CREATE NONCLUSTERED INDEX [missing_index_242] ON [dbo].[tblClaim]
3574+
(
3575+
[ClaimStatus] ASC,
3576+
[ValidityTo] ASC,
3577+
[HFID] ASC,
3578+
[DateProcessed] ASC
3579+
)
3580+
INCLUDE([ClaimCode]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3581+
GO
3582+
3583+
CREATE NONCLUSTERED INDEX [missing_index_245] ON [dbo].[tblClaim]
3584+
(
3585+
[ClaimStatus] ASC,
3586+
[ValidityTo] ASC,
3587+
[HFID] ASC,
3588+
[DateProcessed] ASC
3589+
)
3590+
INCLUDE([ClaimCode],[Claimed]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3591+
GO
3592+
3593+
/****** Object: Index [missing_index_306] Script Date: 16/09/2022 12:37:04 ******/
3594+
CREATE NONCLUSTERED INDEX [missing_index_306] ON [dbo].[tblClaim]
3595+
(
3596+
[ClaimStatus] ASC,
3597+
[ValidityTo] ASC,
3598+
[DateProcessed] ASC
3599+
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3600+
GO
3601+
3602+
CREATE NONCLUSTERED INDEX [missing_index_4896] ON [dbo].[tblClaim]
3603+
(
3604+
[ClaimStatus] ASC,
3605+
[DateProcessed] ASC
3606+
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3607+
GO
3608+
3609+
CREATE NONCLUSTERED INDEX [missing_index_50] ON [dbo].[tblClaim]
3610+
(
3611+
[ClaimStatus] ASC,
3612+
[ValidityTo] ASC,
3613+
[DateProcessed] ASC
3614+
)
3615+
INCLUDE([ICDID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3616+
GO
3617+
3618+
CREATE NONCLUSTERED INDEX [NCI_tblClaim_DateProcessed] ON [dbo].[tblClaim]
3619+
(
3620+
[DateProcessed] ASC
3621+
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [IndexesFG]
3622+
GO

0 commit comments

Comments
 (0)