Skip to content

Commit

Permalink
Merge pull request #1 from azaricstefan/azaricstefan-fix-custom-fields
Browse files Browse the repository at this point in the history
Create 2024_05_22_223547_replace_crater_custom_fields.php
  • Loading branch information
azaricstefan committed May 22, 2024
2 parents 1e530e0 + dbf9cbd commit 5354774
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
DB::update("UPDATE custom_field_values SET custom_field_valuable_type = REPLACE(custom_field_valuable_type, 'Crater', 'InvoiceShelf')");
}

/**
* Reverse the migrations.
*/
public function down(): void
{
DB::update("UPDATE custom_field_values SET custom_field_valuable_type = REPLACE(custom_field_valuable_type, 'InvoiceShelf', 'Crater')");
}
};

0 comments on commit 5354774

Please sign in to comment.