Skip to content

Commit 46d6954

Browse files
authored
Merge pull request #8139 from ProcessMaker/fix-upgrade
Fix upgrade
2 parents 780cbc4 + 8eb0f40 commit 46d6954

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

ProcessMaker/Repositories/SettingsConfigRepository.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ private function databaseAvailable()
106106

107107
return true;
108108
} catch (\PDOException $e) {
109-
dump(get_class($e), $e->getMessage());
110-
111109
return false;
112110
}
113111
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration {
8+
/**
9+
* Run the migrations.
10+
*/
11+
public function up(): void
12+
{
13+
Schema::table('bundles', function ($table) {
14+
$table->text('webhook_token')->nullable()->change();
15+
});
16+
}
17+
18+
/**
19+
* Reverse the migrations.
20+
*/
21+
public function down(): void
22+
{
23+
// Change the column type back to String
24+
Schema::table('bundles', function ($table) {
25+
$table->string('webhook_token')->change();
26+
});
27+
}
28+
};

upgrades/2025_02_26_162124_encrypt_bundle_webhook_token.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ public function preflightChecks()
2727
*/
2828
public function up()
2929
{
30-
// Change the column type to TEXT
31-
Schema::table('bundles', function ($table) {
32-
$table->text('webhook_token')->change();
33-
});
34-
3530
$bundles = DB::table('bundles')->get();
3631

3732
// Encrypt the webhook_token column
@@ -70,11 +65,6 @@ public function down()
7065
continue;
7166
}
7267
}
73-
74-
// Change the column type back to String
75-
Schema::table('bundles', function ($table) {
76-
$table->string('webhook_token')->change();
77-
});
7868
}
7969

8070
/**

0 commit comments

Comments
 (0)