Skip to content

Commit

Permalink
chore: update test scripts for improved test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 12, 2025
1 parent 9d11c1d commit 39abd6f
Show file tree
Hide file tree
Showing 354 changed files with 12,540 additions and 8,632 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public function up()
{
$idsToKeep = DB::table('location_options')
->groupBy('id', 'location_id', 'item')
->get()
->pluck('id')
->all();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ public function up()
{
Schema::table('admin_users', function(Blueprint $table) {
$table->timestamp('invited_at')->nullable();
$table->renameColumn('date_activated', 'activated_at')->nullable();
$table->dateTime('date_activated')->change()->nullable();
});

Schema::table('customers', function(Blueprint $table) {
$table->timestamp('invited_at')->nullable();
$table->renameColumn('date_activated', 'activated_at')->nullable();
$table->dateTime('date_activated')->change()->nullable();
});

Schema::table('admin_users', function(Blueprint $table) {
$table->renameColumn('date_activated', 'activated_at');
});

Schema::table('customers', function(Blueprint $table) {
$table->renameColumn('date_activated', 'activated_at');
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
return new class extends Migration
{
protected array $widgetsMap = [
\System\DashboardWidgets\Activities::class => ['recent-activities'],
\System\DashboardWidgets\Cache::class => ['cache'],
\System\DashboardWidgets\News::class => ['news'],
\Admin\DashboardWidgets\Onboarding::class => ['onboarding'],
\Admin\DashboardWidgets\Statistics::class => ['stats', 'card'],
\Admin\DashboardWidgets\Charts::class => ['charts', 'dataset'],
'System\DashboardWidgets\Activities' => ['recent-activities'],
'System\DashboardWidgets\Cache' => ['cache'],
'System\DashboardWidgets\News' => ['news'],
'Admin\DashboardWidgets\Onboarding' => ['onboarding'],
'Admin\DashboardWidgets\Statistics' => ['stats', 'card'],
'Admin\DashboardWidgets\Charts' => ['charts', 'dataset'],
];

public function up()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ protected function _create_locations()
$table->string('location_postcode', 10);
$table->integer('location_country_id');
$table->string('location_telephone', 32);
$table->float('location_lat', 10, 6);
$table->float('location_lng', 10, 6);
$table->decimal('location_lat', 10, 6);
$table->decimal('location_lng', 10, 6);
$table->integer('location_radius');
$table->boolean('offer_delivery');
$table->boolean('offer_collection');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ protected function _optimize_locations()
$table->integer('location_country_id')->nullable()->change();
$table->integer('location_radius')->nullable()->change();
$table->string('location_image')->nullable()->change();
$table->float('location_lat', 10, 6)->nullable()->change();
$table->float('location_lng', 10, 6)->nullable()->change();
$table->decimal('location_lat', 10, 6)->nullable()->change();
$table->decimal('location_lng', 10, 6)->nullable()->change();
$table->boolean('offer_delivery')->nullable()->change();
$table->boolean('offer_collection')->nullable()->change();
$table->integer('delivery_time')->nullable()->change();
Expand Down
Loading

0 comments on commit 39abd6f

Please sign in to comment.