Created database migration
Currently only for placeholders, just to test my admin thingy.
This commit is contained in:
parent
83161f019f
commit
25386b6a49
1 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateBlueprintTest extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('blueprint', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('placeholder:1')->nullable();
|
||||
$table->string('placeholder:2')->nullable();
|
||||
$table->string('placeholder:3')->nullable();
|
||||
$table->timestamp('timestamp')->useCurrent()->onUpdate(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('blueprint');
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue