Add SQL for changing vehicleID manually
This commit is contained in:
@@ -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
|
||||||
@@ -337,6 +337,7 @@
|
|||||||
<Content Include="Content\font-awesome.min.css" />
|
<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.css" />
|
||||||
<Content Include="Content\themes\custom-theme\jquery-ui-1.10.4.custom.min.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.svg" />
|
||||||
<Content Include="fonts\fontawesome-webfont.woff2" />
|
<Content Include="fonts\fontawesome-webfont.woff2" />
|
||||||
<Content Include="fonts\fontawesome-webfont.woff" />
|
<Content Include="fonts\fontawesome-webfont.woff" />
|
||||||
|
|||||||
Reference in New Issue
Block a user