2018_05_03_101301_usedurls.php 808 Bytes
Newer Older
1
2
3
<?php

use Illuminate\Database\Migrations\Migration;
4
5
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
6
7
8
9
10
11
12
13
14
15
16

class Usedurls extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('usedurls', function (Blueprint $table) {
17
18
19
20
            $table->increments('number')->unique();
            $table->string('uid');
            $table->string('id');
            $table->text('eingabe');
21
            $table->timestamp('created_at');
22
            $table->foreign('uid')->references('uid')->on('humanverification')->onDelete('cascade');
23
24
25
26
27
28
29
30
31
32
33
34
35
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('usedurls');
    }
}