Skip to content

Commit

Permalink
Remove Ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
cannycookie committed Aug 19, 2024
1 parent 42308c2 commit 411936d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion database/migrations/create_email_templates_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
1 change: 0 additions & 1 deletion src/Models/EmailTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class EmailTemplate extends Model
'content',
'language',
'logo',
'ordering',

];

Expand Down
4 changes: 2 additions & 2 deletions src/Resources/EmailTemplateResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 411936d

Please sign in to comment.