Add SQL for changing vehicleID manually

This commit is contained in:
2018-09-19 10:46:44 -04:00
parent aaa08deb4d
commit 609fb91bc2
2 changed files with 17 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
DECLARE @CurrentVehicleId nvarchar(6);
DECLARE @NewVehicleId nvarchar(6);
SET @CurrentVehicleId = '#';
SET @NewVehicleId = '#';
ALTER TABLE [dbo].[Log] NOCHECK CONSTRAINT Vehicle_Logs
UPDATE [Vehicle]
SET VehicleId = @NewVehicleId
WHERE VehicleId = @CurrentVehicleId
UPDATE [Log]
SET Vehicle_VehicleId = @NewVehicleId
WHERE Vehicle_VehicleId = @CurrentVehicleId
ALTER TABLE [dbo].[Log] WITH CHECK CHECK CONSTRAINT Vehicle_Logs
+1
View File
@@ -337,6 +337,7 @@
<Content Include="Content\font-awesome.min.css" />
<Content Include="Content\themes\custom-theme\jquery-ui-1.10.4.custom.css" />
<Content Include="Content\themes\custom-theme\jquery-ui-1.10.4.custom.min.css" />
<Content Include="DAL\VehicleModifyKey.sql" />
<Content Include="fonts\fontawesome-webfont.svg" />
<Content Include="fonts\fontawesome-webfont.woff2" />
<Content Include="fonts\fontawesome-webfont.woff" />