Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 398 | Revision 513 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 398 Revision 476
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
3
use Illuminate\Database\Migrations\Migration;
3
    use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
4
    use Illuminate\Database\Schema\Blueprint;
Zeile 5... Zeile 5...
5
use Illuminate\Support\Facades\Schema;
5
    use Illuminate\Support\Facades\Schema;
6
 
-
 
7
return new class extends Migration
-
 
8
{
-
 
9
    /**
-
 
10
     * Run the migrations.
-
 
11
     *
-
 
12
     * @return void
-
 
13
     */
6
 
-
 
7
    return new class extends Migration
-
 
8
    {
-
 
9
        /**
-
 
10
         * Run the migrations.
-
 
11
         *
-
 
12
         * @return void
-
 
13
         */
-
 
14
        public function up()
-
 
15
        {
14
    public function up()
16
            if ( !Schema::hasTable( 'shippings' ) )
-
 
17
            {
15
    {
18
                Schema::create( 'shippings', function ( Blueprint $table )
16
        Schema::create('shippings', function (Blueprint $table) {
19
                {
-
 
20
                    $table->id();
17
            $table->id();
21
                    $table->timestamps();
18
            $table->timestamps();
22
                } );
Zeile 19... Zeile 23...
19
        });
23
            }
20
    }
24
        }
21
 
25
 
22
    /**
26
        /**
23
     * Reverse the migrations.
27
         * Reverse the migrations.
24
     *
28
         *
25
     * @return void
29
         * @return void
26
     */
30
         */
27
    public function down()
31
        public function down()
28
    {
32
        {