Merge branch 'develop'
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
-->
|
||||
<configuration>
|
||||
<system.web>
|
||||
<customErrors mode="Off" />
|
||||
<compilation debug="true" targetFramework="4.0">
|
||||
<assemblies>
|
||||
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
|
||||
@@ -108,6 +108,7 @@
|
||||
<Compile Include="utils.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="SQL\ETS_WS\ETS_WS_00126.sql" />
|
||||
<Content Include="SQL\ETS_WS\ETS_WS_00125.sql" />
|
||||
<Content Include="SQL\ETS_WS\ETS_WS_00121.sql" />
|
||||
<Content Include="SQL\ETS_WS\ETS_WS_00120.sql" />
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
-- aggiorno nomi file > 80
|
||||
UPDATE tbDocumenti
|
||||
SET nomeFile = dbo.f_shortString(nomeFile, 80)
|
||||
WHERE LEN(nomeFile) > 80
|
||||
AND Anno < 2013
|
||||
|
||||
-- aggiorno path > 100
|
||||
UPDATE tbDocumenti
|
||||
SET fullPath = dbo.f_pathOldDocs('~/ArchivioDocs',Commessa, Fase, InOut, Fonte, DataDoc, dbo.f_shortString(Oggetto, 40))
|
||||
WHERE LEN(fullPath) > 100
|
||||
AND Anno < 2013
|
||||
|
||||
-- verifico eventuali ulteriori sforamenti... aggiorno LEN(fullPath) + LEN(nomeFile) > 240
|
||||
UPDATE tbDocumenti
|
||||
SET fullPath = dbo.f_pathOldDocs('~/ArchivioDocs',Commessa, Fase, InOut, Fonte, DataDoc, dbo.f_shortString(Oggetto, 30))
|
||||
,nomeFile = dbo.f_shortString(nomeFile, 30)
|
||||
where LEN(fullPath) + LEN(nomeFile) > 240
|
||||
AND Anno < 2013
|
||||
|
||||
|
||||
|
||||
-- verifico eventuali ulteriori sforamenti rimasti e divento + aggressivo... aggiorno LEN(fullPath) + LEN(nomeFile) > 240
|
||||
UPDATE tbDocumenti
|
||||
SET fullPath = dbo.f_pathOldDocs('~/ArchivioDocs',Commessa, Fase, InOut, Fonte, DataDoc, dbo.f_shortString(Oggetto, 25))
|
||||
,nomeFile = dbo.f_shortString(nomeFile, 20)
|
||||
where LEN(fullPath) + LEN(nomeFile) > 240
|
||||
AND Anno < 2013
|
||||
|
||||
|
||||
-- verifico eventuali ulteriori sforamenti rimasti e divento + aggressivo... aggiorno LEN(fullPath) + LEN(nomeFile) > 240
|
||||
UPDATE tbDocumenti
|
||||
SET fullPath = dbo.f_pathOldDocs('~/ArchivioDocs',Commessa, Fase, InOut, Fonte, DataDoc, dbo.f_shortString(Oggetto, 25))
|
||||
,nomeFile = dbo.f_shortString(nomeFile, 20)
|
||||
where LEN(fullPath) + LEN(nomeFile) > 240
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(126, GETDATE())
|
||||
GO
|
||||
SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC
|
||||
GO
|
||||
Binary file not shown.
Reference in New Issue
Block a user