remove days and add tasks

This commit is contained in:
salam committed 2026-07-01 15:44:30 +02:00
1 parent be2a16a812
commit 23a367c493
31 files changed
+237 -464

No files matched your search

@@ -11,11 +11,11 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('sofa_score_days', function (Blueprint $table) {
Schema::create('sofa_score_task_tournaments', function (Blueprint $table) {
$table->id();
$table->date('day')->index();
$table->integer('sport_id')->index()->references('id')->on('sports');
$table->boolean('enabled')->index()->default(0);
$table->integer('sofa_score_task_id')->index()->references('id')->on('sofa_score_tasks');
$table->integer('sofa_score_tournament_id')->index()->references('id')->on('sofa_score_tournaments');
$table->boolean('disabled')->default(0);
$table->timestamps();
});
}
@@ -25,6 +25,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('sofa_score_days');
Schema::dropIfExists('sofa_score_task_tournaments');
}
};