This commit is contained in:
mchev
2026-03-21 18:59:53 +01:00
parent 186ab35fd4
commit c901114fc0
232 changed files with 685 additions and 403 deletions

View File

@@ -56,9 +56,9 @@ return new class extends Migration
]);
CustomFieldValue::where('custom_field_valuable_id', $user->id)
->where('custom_field_valuable_type', \App\Models\User::class)
->where('custom_field_valuable_type', User::class)
->update([
'custom_field_valuable_type' => \App\Models\Customer::class,
'custom_field_valuable_type' => Customer::class,
'custom_field_valuable_id' => $newCustomer->id,
]);
}

View File

@@ -15,7 +15,7 @@ return new class extends Migration
try {
DB::update("UPDATE abilities SET entity_type = REPLACE(entity_type, 'Crater', 'InvoiceShelf')");
DB::update("UPDATE assigned_roles SET entity_type = REPLACE(entity_type, 'Crater', 'InvoiceShelf')");
} catch (\Exception $e) {
} catch (Exception $e) {
}
Setting::setSetting('version', '1.1.0');
@@ -29,7 +29,7 @@ return new class extends Migration
try {
DB::update("UPDATE abilities SET entity_type = REPLACE(entity_type, 'InvoiceShelf', 'Crater')");
DB::update("UPDATE assigned_roles SET entity_type = REPLACE(entity_type, 'InvoiceShelf', 'Crater')");
} catch (\Exception $e) {
} catch (Exception $e) {
}

View File

@@ -16,7 +16,7 @@ return new class extends Migration
DB::update("UPDATE notifications SET notifiable_type = REPLACE(notifiable_type, 'Crater', 'InvoiceShelf')");
DB::update("UPDATE personal_access_tokens SET tokenable_type = REPLACE(tokenable_type, 'Crater', 'InvoiceShelf')");
DB::update("UPDATE custom_field_values SET custom_field_valuable_type = REPLACE(custom_field_valuable_type, 'Crater', 'InvoiceShelf')");
} catch (\Exception $e) {
} catch (Exception $e) {
}
}
@@ -31,7 +31,7 @@ return new class extends Migration
DB::update("UPDATE notifications SET notifiable_type = REPLACE(notifiable_type, 'InvoiceShelf', 'Crater')");
DB::update("UPDATE personal_access_tokens SET tokenable_type = REPLACE(tokenable_type, 'InvoiceShelf', 'Crater')");
DB::update("UPDATE custom_field_values SET custom_field_valuable_type = REPLACE(custom_field_valuable_type, 'InvoiceShelf', 'Crater')");
} catch (\Exception $e) {
} catch (Exception $e) {
}
}
};