Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS-75.00 Database Schema Changes #3818

Merged
merged 5 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GO

-- Update the database version number.
DECLARE @CurrVer NVARCHAR(100)
SET @CurrVer = N'73.00'
SET @CurrVer = N'74.00'

UPDATE PIMS_STATIC_VARIABLE
WITH (UPDLOCK, SERIALIZABLE)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* -----------------------------------------------------------------------------
Alter the data in the PIMS_PROP_MGMT_ACTIVITY_SUBTYPE table.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Author Date Comment
------------ ----------- -----------------------------------------------------
Doug Filteau 2024-Feb-26 Initial version
----------------------------------------------------------------------------- */

SET XACT_ABORT ON
GO
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
GO
BEGIN TRANSACTION
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO

-- Insert the new data source types
DELETE
FROM PIMS_PROP_MGMT_ACTIVITY_SUBTYPE
WHERE PROP_MGMT_ACTIVITY_TYPE_CODE = N'UTILITYBILL'
AND PROP_MGMT_ACTIVITY_SUBTYPE_CODE IN (N'ELECTRICITYBILL', N'GASBILL', N'INTERNETBILL', N'SEWERWATERBILL', N'TELEPHONEBILL')
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO

-- Insert the new data source types
DELETE
FROM PIMS_PROP_MGMT_ACTIVITY_SUBTYPE
WHERE PROP_MGMT_ACTIVITY_TYPE_CODE = N'TAXESLEVIES'
AND PROP_MGMT_ACTIVITY_SUBTYPE_CODE IN (N'MUNIPROPTAX', N'WATERTAX', N'OTHERTAX')
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO

COMMIT TRANSACTION
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO
DECLARE @Success AS BIT
SET @Success = 1
SET NOEXEC OFF
IF (@Success = 1) PRINT 'The database update succeeded'
ELSE BEGIN
IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
PRINT 'The database update failed'
END
GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* -----------------------------------------------------------------------------
Alter the data in the PIMS_PROP_MGMT_ACTIVITY_TYPE table.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Author Date Comment
------------ ----------- -----------------------------------------------------
Doug Filteau 2024-Feb-26 Initial version
----------------------------------------------------------------------------- */

SET XACT_ABORT ON
GO
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
GO
BEGIN TRANSACTION
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO

-- Delete the new data source types
DELETE
FROM PIMS_PROP_MGMT_ACTIVITY_TYPE
WHERE PROP_MGMT_ACTIVITY_TYPE_CODE IN (N'UTILITYBILL', N'TAXESLEVIES');
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO

COMMIT TRANSACTION
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO
DECLARE @Success AS BIT
SET @Success = 1
SET NOEXEC OFF
IF (@Success = 1) PRINT 'The database update succeeded'
ELSE BEGIN
IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
PRINT 'The database update failed'
END
GO

Binary file not shown.
Loading
Loading