remove days and add tasks
This commit is contained in:
1 parent
be2a16a812
commit
23a367c493
31 files changed
+237
-464
No files matched your search
+5
-5
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user