Files
2026-09-01 10:46:29 -03:00

29 lines
1.0 KiB
PHP
Executable File

<?php
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Schema\Blueprint;
class CreateAffiliateBannersTable
{
public function up()
{
if (!Capsule::schema()->hasTable('affiliate_banners')) {
Capsule::schema()->create('affiliate_banners', function (Blueprint $table) {
$table->bigIncrements('affiliate_banners_id');
$table->string('affiliate_banners_name');
$table->text('affiliate_banners_description')->nullable();
$table->string('affiliate_banners_image_url');
$table->string('affiliate_banners_target_url')->nullable();
$table->integer('affiliate_banners_width')->nullable();
$table->integer('affiliate_banners_height')->nullable();
$table->boolean('affiliate_banners_is_active')->default(true);
$table->timestamps();
});
}
}
public function down()
{
Capsule::schema()->dropIfExists('affiliate_banners');
}
}