feat: champion skin data seeder

This commit is contained in:
Rico van Zelst
2023-10-31 10:20:33 +01:00
parent dc4617c576
commit ea879a8c70
5 changed files with 111 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
<?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('champion_skins', function (Blueprint $table) {
$table->integer('rp_price')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('champion_skins', function (Blueprint $table) {
$table->bigInteger('rp_price')->change();
});
}
};

View File

@@ -0,0 +1,28 @@
<?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('champion_skins', function (Blueprint $table) {
$table->text('lore')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('champion_skins', function (Blueprint $table) {
$table->text('lore')->nullable(false)->change();
});
}
};