From 080c13b8afeb8303f48f94ddd0fcd3179d852377 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Wed, 18 Sep 2024 16:27:29 +0300 Subject: [PATCH] update --- web/Modules/Email/App/Models/DomainDkim.php | 4 ---- web/Modules/Email/App/Models/DomainDkimSigning.php | 6 +----- web/Modules/Email/App/Models/EmailAlias.php | 6 +----- web/Modules/Email/App/Models/EmailAliasDomain.php | 6 +----- web/Modules/Email/App/Models/EmailBox.php | 6 +----- web/Modules/Email/App/Models/EmailQuota.php | 6 +----- web/Modules/Email/App/Models/EmailQuota2.php | 6 +----- ...php => 2024_09_18_130450_create_email_quotas2_table.php} | 6 +++--- 8 files changed, 9 insertions(+), 37 deletions(-) rename web/Modules/Email/Database/migrations/{2024_09_18_130450_create_email_quota2_table.php => 2024_09_18_130450_create_email_quotas2_table.php} (82%) diff --git a/web/Modules/Email/App/Models/DomainDkim.php b/web/Modules/Email/App/Models/DomainDkim.php index 6e487ea..50937b1 100644 --- a/web/Modules/Email/App/Models/DomainDkim.php +++ b/web/Modules/Email/App/Models/DomainDkim.php @@ -15,8 +15,4 @@ class DomainDkim extends Model */ protected $fillable = []; - protected static function newFactory(): DomainDkimFactory - { - //return DomainDkimFactory::new(); - } } diff --git a/web/Modules/Email/App/Models/DomainDkimSigning.php b/web/Modules/Email/App/Models/DomainDkimSigning.php index 69378f5..ebd924b 100644 --- a/web/Modules/Email/App/Models/DomainDkimSigning.php +++ b/web/Modules/Email/App/Models/DomainDkimSigning.php @@ -14,9 +14,5 @@ class DomainDkimSigning extends Model * The attributes that are mass assignable. */ protected $fillable = []; - - protected static function newFactory(): DomainDkimSigningFactory - { - //return DomainDkimSigningFactory::new(); - } + } diff --git a/web/Modules/Email/App/Models/EmailAlias.php b/web/Modules/Email/App/Models/EmailAlias.php index 822a52f..8b02206 100644 --- a/web/Modules/Email/App/Models/EmailAlias.php +++ b/web/Modules/Email/App/Models/EmailAlias.php @@ -14,9 +14,5 @@ class EmailAlias extends Model * The attributes that are mass assignable. */ protected $fillable = []; - - protected static function newFactory(): EmailAliasFactory - { - //return EmailAliasFactory::new(); - } + } diff --git a/web/Modules/Email/App/Models/EmailAliasDomain.php b/web/Modules/Email/App/Models/EmailAliasDomain.php index 47a85bf..ed5f3e3 100644 --- a/web/Modules/Email/App/Models/EmailAliasDomain.php +++ b/web/Modules/Email/App/Models/EmailAliasDomain.php @@ -14,9 +14,5 @@ class EmailAliasDomain extends Model * The attributes that are mass assignable. */ protected $fillable = []; - - protected static function newFactory(): EmailAliasDomainFactory - { - //return EmailAliasDomainFactory::new(); - } + } diff --git a/web/Modules/Email/App/Models/EmailBox.php b/web/Modules/Email/App/Models/EmailBox.php index fbd002c..421ee34 100644 --- a/web/Modules/Email/App/Models/EmailBox.php +++ b/web/Modules/Email/App/Models/EmailBox.php @@ -14,9 +14,5 @@ class EmailBox extends Model * The attributes that are mass assignable. */ protected $fillable = []; - - protected static function newFactory(): EmailBoxFactory - { - //return EmailBoxFactory::new(); - } + } diff --git a/web/Modules/Email/App/Models/EmailQuota.php b/web/Modules/Email/App/Models/EmailQuota.php index acd80a8..68f7b33 100644 --- a/web/Modules/Email/App/Models/EmailQuota.php +++ b/web/Modules/Email/App/Models/EmailQuota.php @@ -14,9 +14,5 @@ class EmailQuota extends Model * The attributes that are mass assignable. */ protected $fillable = []; - - protected static function newFactory(): EmailQuotaFactory - { - //return EmailQuotaFactory::new(); - } + } diff --git a/web/Modules/Email/App/Models/EmailQuota2.php b/web/Modules/Email/App/Models/EmailQuota2.php index 7a87032..17c79f9 100644 --- a/web/Modules/Email/App/Models/EmailQuota2.php +++ b/web/Modules/Email/App/Models/EmailQuota2.php @@ -14,9 +14,5 @@ class EmailQuota2 extends Model * The attributes that are mass assignable. */ protected $fillable = []; - - protected static function newFactory(): EmailQuota2Factory - { - //return EmailQuota2Factory::new(); - } + } diff --git a/web/Modules/Email/Database/migrations/2024_09_18_130450_create_email_quota2_table.php b/web/Modules/Email/Database/migrations/2024_09_18_130450_create_email_quotas2_table.php similarity index 82% rename from web/Modules/Email/Database/migrations/2024_09_18_130450_create_email_quota2_table.php rename to web/Modules/Email/Database/migrations/2024_09_18_130450_create_email_quotas2_table.php index 30b7fd2..549a787 100644 --- a/web/Modules/Email/Database/migrations/2024_09_18_130450_create_email_quota2_table.php +++ b/web/Modules/Email/Database/migrations/2024_09_18_130450_create_email_quotas2_table.php @@ -11,9 +11,9 @@ return new class extends Migration */ public function up(): void { - Schema::create('email_quota2', function (Blueprint $table) { + Schema::create('email_quotas2', function (Blueprint $table) { $table->id(); - + $table->string('username', 100)->nullable(); $table->bigInteger('bytes')->default(0); $table->integer('messages')->nullable(); @@ -27,6 +27,6 @@ return new class extends Migration */ public function down(): void { - Schema::dropIfExists('email_quota2'); + Schema::dropIfExists('email_quotas2'); } };