-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from scify/master
Improvements
- Loading branch information
Showing
40 changed files
with
765 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Database\Factories\Solution; | ||
|
||
use App\BusinessLogicLayer\lkp\SolutionStatusLkp; | ||
use App\Models\Solution\Solution; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class SolutionFactory extends Factory { | ||
protected $model = Solution::class; | ||
|
||
public function definition() { | ||
return [ | ||
'problem_id' => 1, | ||
'user_creator_id' => 1, | ||
'slug' => $this->faker->slug, | ||
'status_id' => SolutionStatusLkp::PUBLISHED, | ||
'img_url' => $this->faker->imageUrl(), | ||
'created_at' => now(), | ||
'updated_at' => now(), | ||
]; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ations/2024_12_12_112252_add_max_votes_for_solutions_to_crowd_sourcing_projects_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void { | ||
Schema::table('crowd_sourcing_projects', function (Blueprint $table) { | ||
$table->integer('max_votes_per_user_for_solutions')->after('language_id')->default(5); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void { | ||
Schema::table('crowd_sourcing_projects', function (Blueprint $table) { | ||
// | ||
}); | ||
} | ||
}; |
Oops, something went wrong.