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

Modified Project_Snapshot sproc #1495

Merged
merged 1 commit into from
Nov 2, 2023
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
Original file line number Diff line number Diff line change
@@ -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


204 changes: 203 additions & 1 deletion server/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,8 @@
<option value="2023-09-09 20:26:18">2023-09-09 20:26:18</option>
<option value="2023-09-10 01:33:15">2023-09-10 01:33:15</option>
<option value="2023-09-10 13:47:20">2023-09-10 13:47:20</option>
<option value="2023-09-11 17:59:33" selected="true">2023-09-11 17:59:33</option>
<option value="2023-09-11 17:59:33">2023-09-11 17:59:33</option>
<option value="2023-11-02 10:01:57" selected="true">2023-11-02 10:01:57</option>
</select>
</div>
<div class="page 2023-07-04 16:56:15">
Expand Down Expand Up @@ -6505,6 +6506,207 @@
See the License for the specific language governing permissions and
limitations under the License.

-->
<div class="holdingTab">
<div class='summaryDiv summaryNote'>
<div class='summaryDivContent'>
<span class='summaryIcon'><svg fill="none"><use href="#infoOutlined"/></svg></span>
<span class='summaryText'>Explore how to get this report and what it can do for you.</span></div>
<div class="summaryRight" ><a href='https://rd.gt/3ornhzX'>Learn More</a></div>
</div>

<div class="upgradeContent">
<svg fill="none" width="38" height="38">
<use href="#document"/>
</svg>

<p>No code analysis report available yet</p>
<button class="clickable learnMoreGrayButton fancyButton" onclick="location.href='https://rd.gt/3ornhzX'">Learn more</button>
</div>
</div>
</div>
</div>
<div class="page 2023-11-02 10:01:57">
<div class="tabs">
<button class="tab" onclick="onTabClick(event, 'Dashboard_0_2023-11-0210:01:57','dashboard-0_2023-11-02 10:01:57')" id="dashboard-0_2023-11-02 10:01:57"><h4>Dashboard</h4></button>
<button class="tab" onclick="onTabClick(event, 'Migrationreport_1_2023-11-0210:01:57','migrate-1_2023-11-02 10:01:57')" id="migrate-1_2023-11-02 10:01:57"><h4>Migration report</h4></button>
<button class="tab" onclick="onTabClick(event, 'ChangeReport_2_2023-11-0210:01:57','changes-2_2023-11-02 10:01:57')" id="changes-2_2023-11-02 10:01:57"><h4>Change Report</h4></button>
<button class="tab" onclick="onTabClick(event, 'DriftReport_3_2023-11-0210:01:57','drift-3_2023-11-02 10:01:57')" id="drift-3_2023-11-02 10:01:57"><h4>Drift Report</h4></button>
<button class="tab" onclick="onTabClick(event, 'DryRunReport_4_2023-11-0210:01:57','dryrun-4_2023-11-02 10:01:57')" id="dryrun-4_2023-11-02 10:01:57"><h4>Dry Run Report</h4></button>
<button class="tab" onclick="onTabClick(event, 'CodeAnalysisReport_5_2023-11-0210:01:57','code-5_2023-11-02 10:01:57')" id="code-5_2023-11-02 10:01:57"><h4>Code Analysis Report</h4></button>
</div><div id="Dashboard_0_2023-11-0210:01:57" class="tabcontent">
<div class='dashboardContainer'><div class='dashboardSummaryGroup'><h5>Migration report</h5><div class='summaryDiv scGood'><div class='summaryDivContent'><span class='summaryIcon'><svg fill="none"><use href="#infoOutlined"/></svg></span><span class='summaryText'>Database version: 20231102.0946</span></div></div><div class='summaryDiv scGood'><div class='summaryDivContent'><span class='summaryIcon'><svg fill="none"><use href="#checkFilled"/></svg></span><span class='summaryText'>1 script migrated</span></div></div><div class='summaryDiv scNote'><div class='summaryDivContent'><span class='summaryIcon'><svg fill="none"><use href="#clockOutlined"/></svg></span><span class='summaryText'>Execution Time: 00:00.074s</span></div></div><button class='clickable inspectButton fancyButton' onclick="onTabClick(event, 'Migrationreport_1_2023-11-0210:01:57','migrate-1_2023-11-02 10:01:57')">Inspect Migration report</button></div></div></div>
<div id="Migrationreport_1_2023-11-0210:01:57" class="tabcontent">
<div class='summaryHeader'><div class='summaryDiv scGood'><div class='summaryDivContent'><span class='summaryIcon'><svg fill="none"><use href="#infoOutlined"/></svg></span><span class='summaryText'>Database version: 20231102.0946</span></div></div><div class='summaryDiv scGood'><div class='summaryDivContent'><span class='summaryIcon'><svg fill="none"><use href="#checkFilled"/></svg></span><span class='summaryText'>1 script migrated</span></div></div><div class='summaryDiv scNote'><div class='summaryDivContent'><span class='summaryIcon'><svg fill="none"><use href="#clockOutlined"/></svg></span><span class='summaryText'>Execution Time: 00:00.074s</span></div></div><div class='summaryDiv summaryNote'><div class='summaryDivContent'><span class='summaryIcon'><svg fill="none"><use href="#infoOutlined"/></svg></span><span class='summaryText'><!--

Copyright (C) Red Gate Software Ltd 2010-2023

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
You can read more about the migrate report <a href="https://rd.gt/3okl9tM">here</a>
</span></div></div></div><div> <table class="tabulardata">
<thead>
<tr>
<th>Version</th>
<th>Description</th>
<th>Category</th>
<th>Type</th>
<th>Filepath</th>
<th>ExecutionTime</th>
</tr>
</thead>
<tbody>
<tr>
<td>20231102.0946</td>
<td>modify project snpshot sproc 1437</td>
<td>Versioned</td>
<td>SQL</td>
<td>V20231102.0946__modify_project_snpshot_sproc_1437.sql</td>
<td>00:00.074s</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="ChangeReport_2_2023-11-0210:01:57" class="tabcontent">
<!--

Copyright (C) Red Gate Software Ltd 2010-2023

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
<div class="holdingTab">
<div class='summaryDiv summaryNote'>
<div class='summaryDivContent'>
<span class='summaryIcon'><svg fill="none"><use href="#infoOutlined"/></svg></span>
<span class='summaryText'>Explore how to get this report and what it can do for you.</span></div>
<div class="summaryRight" ><a href='https://rd.gt/43G0r7G'>Learn More</a></div>
</div>

<div class="upgradeContent">
<svg width="410" height="206" viewBox="0 0 410 206" fill="none">
<use href="#upgrade"/>
</svg>

<p>Change reporting is not included in your current Flyway license. Upgrade to Flyway Enterprise to gain access.</p>
<button class="clickable upgradeButton fancyButton" onclick="location.href='https://rd.gt/3ytplJq'">Trial Flyway Enterprise</button>
<button class="clickable learnMoreGrayButton fancyButton" onclick="location.href='https://rd.gt/43G0r7G'">Learn more</button>
</div>
</div>
</div>
<div id="DriftReport_3_2023-11-0210:01:57" class="tabcontent">
<!--

Copyright (C) Red Gate Software Ltd 2010-2023

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
<div class="holdingTab">
<div class='summaryDiv summaryNote'>
<div class='summaryDivContent'>
<span class='summaryIcon'><svg fill="none"><use href="#infoOutlined"/></svg></span>
<span class='summaryText'>Explore how to get this report and what it can do for you.</span></div>
<div class="summaryRight" ><a href='https://rd.gt/40ikqXf'>Learn More</a></div>
</div>

<div class="upgradeContent">
<svg width="410" height="206" viewBox="0 0 410 206" fill="none">
<use href="#upgrade"/>
</svg>

<p>Drift reporting is not included in your current Flyway license. Upgrade to Flyway Enterprise to gain access.</p>
<button class="clickable upgradeButton fancyButton" onclick="location.href='https://rd.gt/3ytplJq'">Trial Flyway Enterprise</button>
<button class="clickable learnMoreGrayButton fancyButton" onclick="location.href='https://rd.gt/40ikqXf'">Learn more</button>
</div>
</div>
</div>
<div id="DryRunReport_4_2023-11-0210:01:57" class="tabcontent">
<!--

Copyright (C) Red Gate Software Ltd 2010-2023

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
<div class="holdingTab">
<div class='summaryDiv summaryNote'>
<div class='summaryDivContent'>
<span class='summaryIcon'><svg fill="none"><use href="#infoOutlined"/></svg></span>
<span class='summaryText'>Explore how to get this report and what it can do for you.</span></div>
<div class="summaryRight" ><a href='https://rd.gt/3KSXkAW'>Learn More</a></div>
</div>

<div class="upgradeContent">
<svg width="410" height="206" viewBox="0 0 410 206" fill="none">
<use href="#upgrade"/>
</svg>

<p>Dry Run is not included in your current Flyway license. Upgrade to Flyway Teams or Enterprise to gain access.</p>
<button class="clickable upgradeButton fancyButton" onclick="location.href='https://rd.gt/3ytplJq'">Trial Flyway Teams or Enterprise</button>
<button class="clickable learnMoreGrayButton fancyButton" onclick="location.href='https://rd.gt/3KSXkAW'">Learn more</button>
</div>
</div>
</div>
<div id="CodeAnalysisReport_5_2023-11-0210:01:57" class="tabcontent">
<!--

Copyright (C) Red Gate Software Ltd 2010-2023

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
<div class="holdingTab">
<div class='summaryDiv summaryNote'>
Expand Down
24 changes: 24 additions & 0 deletions server/report.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}