First Commit
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user