diff --git a/database/migrations/2021_08_05_235942_add_zelle_payment_type.php b/database/migrations/2021_08_05_235942_add_zelle_payment_type.php new file mode 100644 index 0000000000..4565bfc3c9 --- /dev/null +++ b/database/migrations/2021_08_05_235942_add_zelle_payment_type.php @@ -0,0 +1,36 @@ +first(); + + if(!$pt){ + + $payment_type = new PaymentType(); + $payment_type->name = 'Zelle'; + $payment_type->save(); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/database/seeders/PaymentTypesSeeder.php b/database/seeders/PaymentTypesSeeder.php index 1569bba9dc..8967bb2c76 100644 --- a/database/seeders/PaymentTypesSeeder.php +++ b/database/seeders/PaymentTypesSeeder.php @@ -70,6 +70,7 @@ class PaymentTypesSeeder extends Seeder ['name' => 'GoCardless', 'gateway_type_id' => self::GATEWAY_TYPE_GOCARDLESS], ['name' => 'Crypto', 'gateway_type_id' => self::GATEWAY_TYPE_CRYPTO], ['name' => 'Credit', 'gateway_type_id' => self::GATEWAY_TYPE_CREDIT], + ['name' => 'Zelle'], ]; $x = 1;