37 lines
875 B
PHP
37 lines
875 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateUsefulLinksTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('useful_links', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->string('icon')->default('');
|
||
|
$table->string('title')->default('Default Title');
|
||
|
$table->string('link')->default('https://bitsec.dev');
|
||
|
$table->string('message')->default('Default Message');
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('useful_links');
|
||
|
}
|
||
|
}
|