We use SSDT DACPAC to deploy our database project. We receive this error when publishing
Error SQL72014: .Net SqlClient Data Provider: Msg 13544, Level 16, State 1, Procedure sp_refreshsqlmodule_internal, Line 85 Temporal FOR SYSTEM_TIME clause can only be used with system-versioned tables. 'reporting.dbo.VW_xxxxxxx' is not a system-versioned table. Error SQL72045: Script execution error.
The view can be created and altered in SSMS without a complaint.
We encapsulate some logic in the view, hence we still would like to use FOR SYSTEM_TIME with the view.
How to get DACPAC to work with such objects and clauses?
https://docs.microsoft.com/en-us/sql/relational-databases/tables/querying-data-in-a-system-versioned-temporal-table?view=sql-server-ver15 shows a view with FOR SYSTEM_TIME clause.
Thank you!