Integration Baniere dans le backend
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/** Largeur d'affichage de la bannière (px). Null = 600, valeur historique. */
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('campaigns', function (Blueprint $t) {
|
||||
$t->unsignedSmallInteger('width')->nullable()->after('link_url');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('campaigns', function (Blueprint $t) {
|
||||
$t->dropColumn('width');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user