-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post-migration actions and post-migration database views refreshing (#…
…112) * Added post-migration actions and post-migration database views refresh * Added refreshing views script to resources of Kros.KORM, other small changes * Added option to accept and use the script ID up to which actions will be executed after migration. Changed the script for refreshing views. * small fixes, added unit test * added info to readme.md, changed the version * added info to readme.md, changed the version * changed version * Small fixes to README and unit test for Migration Runner * update of README --------- Co-authored-by: Kantorová Michaela <[email protected]>
- Loading branch information
Showing
8 changed files
with
132 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DECLARE @sql NVARCHAR(MAX) | ||
|
||
SET @sql = ( | ||
SELECT STRING_AGG('EXEC sp_refreshview ' + QUOTENAME(name), '; ') | ||
FROM sys.views | ||
) | ||
|
||
EXEC sp_executesql @sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...nitTests/Resources/ScriptsForRunner/MigrateWithActions/20250108001_AddPeopleColumnAge.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE People ADD Age INT; |