Skip to content

Commit

Permalink
fix: mariadb migrations failing
Browse files Browse the repository at this point in the history
  • Loading branch information
olwalkey committed Dec 31, 2024
1 parent c33de67 commit 3c72755
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function up(): void
$table->char('uuid', 36)->after('id');
$table->char('daemon_token_id', 16)->after('upload_size');

$table->renameColumn('`daemonSecret`', 'daemon_token');
$table->renameColumn('daemonSecret', 'daemon_token');
});

Schema::table('nodes', function (Blueprint $table) {
Expand Down Expand Up @@ -75,6 +75,7 @@ public function down(): void
Schema::table('nodes', function (Blueprint $table) {
$table->dropColumn(['uuid', 'daemon_token_id']);
$table->renameColumn('daemon_token', 'daemonSecret');

});

Schema::table('nodes', function (Blueprint $table) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ public function up(): void
{
Schema::create('activity_logs', function (Blueprint $table) {
$table->id();
$table->uuid('batch')->nullable();
// $table->uuid('batch')->nullable();
$table->binary('batch', 16)->nullable();
$table->string('event')->index();
$table->string('ip');
$table->text('description')->nullable();
$table->nullableNumericMorphs('actor');
$table->nullableMorphs('actor');
$table->json('properties');
$table->timestamp('timestamp')->useCurrent()->onUpdate(null);
});
Expand Down

0 comments on commit 3c72755

Please sign in to comment.