Finish Hotfix-1
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -4,7 +4,7 @@ import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241205153404 extends BaseMigration implements MigrationModelInterface {
|
||||
public class Migration_20241205153405 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
@@ -14,9 +14,7 @@ public class Migration_20241205153404 extends BaseMigration implements Migration
|
||||
if (isCustomerDb(IntegryCustomerDB.Siciliani_DMS))
|
||||
return;
|
||||
|
||||
boolean existsView = existsView("MES_MachineUsagePivot");
|
||||
|
||||
executeStatement((existsView ? "ALTER" : "CREATE") + " VIEW SYS_SequentialNumbers AS\n" +
|
||||
createOrUpdateView("SYS_SequentialNumbers", "CREATE VIEW SYS_SequentialNumbers AS\n" +
|
||||
"WITH Numbers AS (\n" +
|
||||
" SELECT ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) AS number\n" +
|
||||
" FROM (VALUES (1), (1), (1), (1), (1), (1), (1), (1), (1), (1)) AS A(n)\n" +
|
||||
Reference in New Issue
Block a user