From 66d0d089da8d47edc314c762e8a583b81f13f085 Mon Sep 17 00:00:00 2001 From: John Darragh Date: Thu, 2 Nov 2023 10:03:22 -0700 Subject: [PATCH] Modified Project_Snapshot sproc --- ...946__modify_project_snpshot_sproc_1437.sql | 36 ++++ server/report.html | 204 +++++++++++++++++- server/report.json | 24 +++ 3 files changed, 263 insertions(+), 1 deletion(-) create mode 100644 server/db/migration/V20231102.0946__modify_project_snpshot_sproc_1437.sql diff --git a/server/db/migration/V20231102.0946__modify_project_snpshot_sproc_1437.sql b/server/db/migration/V20231102.0946__modify_project_snpshot_sproc_1437.sql new file mode 100644 index 00000000..59383db9 --- /dev/null +++ b/server/db/migration/V20231102.0946__modify_project_snpshot_sproc_1437.sql @@ -0,0 +1,36 @@ + + +CREATE OR ALTER PROC [dbo].[Project_Snapshot] + @id int + , @name nvarchar(200) null + , @loginId int + +AS +BEGIN +/* + + DECLARE @id int = 218; + DECLARE @name varchar(200) = 'Snapshot Name'; + DECLARE @loginId int = 139; + + EXEC Project_Snapshot @id = @id, @name = @name, @loginId = @loginId + + +*/ + DECLARE @rc int + SELECT @rc = count(*) FROM Project p WHERE p.id = @id AND p.loginId = @loginId + IF (@rc = 0) + BEGIN + RETURN 1 + END + + UPDATE Project SET + name = COALESCE(@name, name) + , formInputs = JSON_MODIFY( formInputs, '$.PROJECT_NAME', COALESCE(@name, name)) + , dateSnapshotted = getutcdate() + WHERE Project.id = @id + +END +GO + + diff --git a/server/report.html b/server/report.html index 99f98699..ed1c62cf 100644 --- a/server/report.html +++ b/server/report.html @@ -809,7 +809,8 @@ - + +
@@ -6505,6 +6506,207 @@ See the License for the specific language governing permissions and limitations under the License. +--> +
+
+
+ + Explore how to get this report and what it can do for you.
+ +
+ +
+ + + + +

No code analysis report available yet

+ +
+
+
+ +
+
+ + + + + + +
+
Migration report
Database version: 20231102.0946
1 script migrated
Execution Time: 00:00.074s
+
+
Database version: 20231102.0946
1 script migrated
Execution Time: 00:00.074s
+You can read more about the migrate report here +
+ + + + + + + + + + + + + + + + + + + + +
VersionDescriptionCategoryTypeFilepathExecutionTime
20231102.0946modify project snpshot sproc 1437VersionedSQLV20231102.0946__modify_project_snpshot_sproc_1437.sql00:00.074s
+
+
+
+ +
+
+
+ + Explore how to get this report and what it can do for you.
+ +
+ +
+ + + + +

Change reporting is not included in your current Flyway license. Upgrade to Flyway Enterprise to gain access.

+ + +
+
+
+
+ +
+
+
+ + Explore how to get this report and what it can do for you.
+ +
+ +
+ + + + +

Drift reporting is not included in your current Flyway license. Upgrade to Flyway Enterprise to gain access.

+ + +
+
+
+
+ +
+
+
+ + Explore how to get this report and what it can do for you.
+ +
+ +
+ + + + +

Dry Run is not included in your current Flyway license. Upgrade to Flyway Teams or Enterprise to gain access.

+ + +
+
+
+
+
diff --git a/server/report.json b/server/report.json index 0ace06b3..8a12c5f5 100644 --- a/server/report.json +++ b/server/report.json @@ -4117,6 +4117,30 @@ "operation": "migrate", "exception": null, "licenseFailed": false + }, + { + "initialSchemaVersion": "20231003.1432", + "targetSchemaVersion": "20231102.0946", + "schemaName": "", + "migrations": [ + { + "category": "Versioned", + "version": "20231102.0946", + "description": "modify project snpshot sproc 1437", + "type": "SQL", + "filepath": "C:\\git\\hackforla\\tdm-calculator\\server\\db\\migration\\V20231102.0946__modify_project_snpshot_sproc_1437.sql", + "executionTime": 74 + } + ], + "migrationsExecuted": 1, + "success": true, + "flywayVersion": "9.22.3", + "database": "tdmdev", + "warnings": [], + "timestamp": "2023-11-02T10:01:57.439316900", + "operation": "migrate", + "exception": null, + "licenseFailed": false } ] } \ No newline at end of file