Files
getgreen-backend/database/migrations/2024_11_06_123808_update_partners_table.php

29 lines
622 B
PHP

<?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("partners", function (Blueprint $table) {
$table->integer("position")->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table("partners", function (Blueprint $table) {
$table->dropColumn("position"); // drop the column
});
}
};