Skip to content

Upgrade path from 2sxc v11.22.1 to v16 #3100

Discussion options

You must be logged in to vote

In SQL Server 2014, there is no native syntax for DROP TRIGGER IF EXISTS and DROP PROCEDURE IF EXISTS, we need to first check if it exists and then drop it. The same goes for ALTER TABLE ... DROP COLUMN IF EXISTS, the IF EXISTS clause is not supported.

You can modify SQL script in ToSic.Sxc.Dnn.16.01.00_Install.zip\SqlDataProvider\15.00.00.SqlDataProvider file and use that modified ZIP in your upgrade process.

Here's your modified SQL script:

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- make sure sql rolls back automatically in case of error.
SET XACT_ABORT ON
GO

-- 1. remove sql trigger functionality that store data in 'ToSIC_EAV_DataTimeline' table 
IF EXISTS (SELECT * FROM sys.t…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@10PoundGorilla-ChrisBehling
Comment options

@iJungleboy
Comment options

@10PoundGorilla-ChrisBehling
Comment options

@iJungleboy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ropalko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants