Enabled Domain homepage

This commit is contained in:
Deon George
2021-06-14 21:33:18 +10:00
parent a3b4214040
commit 4011b2a82d
13 changed files with 205 additions and 70 deletions

View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddPublicToDomains extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('domains', function (Blueprint $table) {
$table->boolean('public')->default(TRUE);
$table->text('homepage')->nullable();
});
Schema::table('zones', function (Blueprint $table) {
$table->dropColumn('public');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('domains', function (Blueprint $table) {
$table->dropColumn(['public','homepage']);
});
Schema::table('zones', function (Blueprint $table) {
$table->boolean('public')->default(TRUE);
});
}
}