Skip to content

Commit

Permalink
AB#53749 - Report Package Migration Classnames Removed
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-paypoint committed Sep 24, 2024
1 parent 32f1233 commit f725e68
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 30 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v5.2.0

+ Conditionally publish and load database migration files to prevent conflicts in table names
+ Removed class names from database migrations to prevent conflicts

## v5.1.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateReportsTable extends Migration
return new class extends Migration
{

/**
* Run the migrations.
*
Expand Down Expand Up @@ -41,5 +40,4 @@ public function down(): void
{
Schema::dropIfExists('reports');
}

}
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateReportFieldsTable extends Migration
return new class extends Migration
{

/**
* Run the migrations.
*
Expand Down Expand Up @@ -36,5 +35,4 @@ public function down(): void
{
Schema::dropIfExists('report_fields');
}

}
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateReportSelectsTable extends Migration
return new class extends Migration
{

/**
* Run the migrations.
*
Expand Down Expand Up @@ -34,5 +33,4 @@ public function down(): void
{
Schema::dropIfExists('report_selects');
}

}
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateReportJoinsTable extends Migration
return new class extends Migration
{

/**
* Run the migrations.
*
Expand Down Expand Up @@ -35,5 +34,4 @@ public function down(): void
{
Schema::dropIfExists('report_joins');
}

}
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateReportMiddlewareTable extends Migration
return new class extends Migration
{

/**
* Run the migrations.
*
Expand All @@ -31,5 +30,4 @@ public function down(): void
{
Schema::dropIfExists('report_middleware');
}

}
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
use Illuminate\Support\Facades\Schema;
use MBLSolutions\Report\Support\Enums\JobStatus;

class CreateReportJobsTable extends Migration
return new class extends Migration
{

/**
* Run the migrations.
*
Expand Down Expand Up @@ -40,5 +39,4 @@ public function down(): void
{
Schema::dropIfExists('report_jobs');
}

}
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
use Illuminate\Support\Facades\Schema;
use MBLSolutions\Report\Support\Enums\ReportSchedule;

class CreateScheduledReportsTable extends Migration
return new class extends Migration
{

/**
* Run the migrations.
*
Expand Down Expand Up @@ -37,5 +36,4 @@ public function down(): void
{
Schema::dropIfExists('scheduled_reports');
}

}
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddAdminOnlyToReportsTable extends Migration
return new class extends Migration
{
/**
* Run the migrations.
Expand All @@ -29,4 +29,4 @@ public function down()
$table->dropColumn('admin_only');
});
}
}
};

0 comments on commit f725e68

Please sign in to comment.