Skip to content
Closed
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
26 changes: 0 additions & 26 deletions database/migrations/2023_03_13_172619_create_data_lake_views.php

This file was deleted.

47 changes: 47 additions & 0 deletions upgrades/2026_09_08_130359_drop_data_lake_views.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

use Illuminate\Support\Facades\Artisan;
use ProcessMaker\Upgrades\UpgradeMigration as Upgrade;

class DropDataLakeViews extends Upgrade
{
/**
* Run any validations/pre-run checks to ensure the environment, settings,
* packages installed, etc. are right correct to run this upgrade.
*
* Throw a \RuntimeException if the conditions are *NOT* correct for this
* upgrade migration to run. If this is not a required upgrade, then it
* will be skipped. Otherwise the exception thrown will be caught, noted,
* and will prevent the remaining migrations from continuing to run.
*
* Returning void or null denotes the checks were successful.
*
* @return void
*
* @throws RuntimeException
*/
public function preflightChecks()
{
//
}

/**
* Run the upgrade migration.
*
* @return void
*/
public function up()
{
Artisan::call('processmaker:create-data-lake-views', ['--drop' => true]);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped views get recreated

High Severity

The drop in DropDataLakeViews does not last because UpdateDataLakeViews still runs processmaker:create-data-lake-views on MigrationsEnded. After this upgrade, a later migrate or a new install's migrate:fresh recreates the dlv_* views, so they remain in the database.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e071817. Configure here.


/**
* Reverse the upgrade migration.
*
* @return void
*/
public function down()
{
//
}
}
Loading