Skip to content

Commit

Permalink
add sort column
Browse files Browse the repository at this point in the history
  • Loading branch information
notAreYouScared committed Apr 20, 2024
1 parent 3e01e48 commit 22c03c8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions database/migrations/2024_04_20_214441_add_egg_var_sort.php
Original file line number Diff line number Diff line change
@@ -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('egg_variables', function (Blueprint $table) {
$table->unsignedTinyInteger('sort')->nullable()->after('egg_id');
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('egg_variables', function (Blueprint $table) {
$table->dropColumn('sort');
});
}
};

0 comments on commit 22c03c8

Please sign in to comment.