diff --git a/database/migrations/create_email_templates_table.php.stub b/database/migrations/create_email_templates_table.php.stub index 8e94869..540b00f 100644 --- a/database/migrations/create_email_templates_table.php.stub +++ b/database/migrations/create_email_templates_table.php.stub @@ -29,7 +29,6 @@ return new class extends Migration $table->string('title', 50)->nullable()->comment('First line of email h1 string'); $table->text('content')->nullable(); $table->string('logo', 191)->nullable(); - $table->integer('ordering')->nullable(); $table->timestamps(); $table->softDeletes(); $table->unique(['key', 'language']); diff --git a/src/Models/EmailTemplate.php b/src/Models/EmailTemplate.php index 2a966de..207d872 100644 --- a/src/Models/EmailTemplate.php +++ b/src/Models/EmailTemplate.php @@ -51,7 +51,6 @@ class EmailTemplate extends Model 'content', 'language', 'logo', - 'ordering', ]; diff --git a/src/Resources/EmailTemplateResource.php b/src/Resources/EmailTemplateResource.php index 8a58053..c6214ed 100644 --- a/src/Resources/EmailTemplateResource.php +++ b/src/Resources/EmailTemplateResource.php @@ -191,7 +191,7 @@ public static function table(Table $table): Table { return $table - ->query(EmailTemplate::query()->orderBy('ordering')) + ->query(EmailTemplate::query()) ->columns( [ TextColumn::make('id'), @@ -257,7 +257,7 @@ public static function table(Table $table): Table Tables\Actions\ForceDeleteBulkAction::make(), Tables\Actions\RestoreBulkAction::make(), ] - )->reorderable('ordering'); + ); } public static function getPages(): array