From 80a9d51ffbaef3312af356ac69df9d1cd10f0c1c Mon Sep 17 00:00:00 2001 From: paulwer Date: Thu, 28 Dec 2023 09:52:27 +0100 Subject: [PATCH] revert preseed mailboxes --- .../2023_12_10_110951_create_imap_configuration_fields.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/database/migrations/2023_12_10_110951_create_imap_configuration_fields.php b/database/migrations/2023_12_10_110951_create_imap_configuration_fields.php index 91a698511324..2813be78ba60 100644 --- a/database/migrations/2023_12_10_110951_create_imap_configuration_fields.php +++ b/database/migrations/2023_12_10_110951_create_imap_configuration_fields.php @@ -20,12 +20,6 @@ return new class extends Migration { $table->string("expense_mailbox_whitelist_domains")->nullable(); $table->string("expense_mailbox_whitelist_emails")->nullable(); }); - Company::query()->cursor()->each(function ($company) { // TODO: @turbo124 check migration on staging environment with real data to ensure, this works as exspected - $company->expense_mailbox = config('ninja.inbound_expense.webhook.mailbox_template') != '' ? - str_replace('{{company_key}}', $company->company_key, config('ninja.inbound_expense.webhook.mailbox_template')) : null; - - $company->save(); - }); Schema::table('vendor', function (Blueprint $table) { $table->string("invoicing_email")->nullable(); $table->string("invoicing_domain")->nullable();