Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 579 | Revision 583 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
164 lars 1
<?php
2
 
297 lars 3
    use Illuminate\Database\Migrations\Migration;
4
    use Illuminate\Database\Schema\Blueprint;
5
    use Illuminate\Support\Facades\Schema;
164 lars 6
 
297 lars 7
    return new class extends Migration
164 lars 8
    {
297 lars 9
        /**
10
         * Run the migrations.
11
         *
12
         * @return void
13
         */
14
        public function up()
15
        {
16
            Schema::create( 'manufacturers', function ( Blueprint $table )
17
            {
18
                $table->id();
579 lars 19
                $table->string( 'name' )->default( '' );
20
                $table->string('headline')->default('');
21
                $table->text( 'description' )->default( '' );
22
                $table->string('logo1')->default('');
23
                $table->string('logo1_href')->default('');
24
                $table->string('logo2')->default('');
581 lars 25
                $table->string('logo2')->default('');
579 lars 26
                $table->string('logo2_href')->default('');
27
                $table->boolean('property_1')->default('0');
28
                $table->boolean('property_2')->default('0');
29
                $table->boolean('property_3')->default('0');
30
                $table->boolean('calculation')->default('0');
297 lars 31
                $table->string( 'created_by' )->default( '' );
32
                $table->string( 'updated_by' )->default( '' );
33
                $table->timestamps();
34
            } );
35
        }
164 lars 36
 
297 lars 37
        /**
38
         * Reverse the migrations.
39
         *
40
         * @return void
41
         */
42
        public function down()
43
        {
44
            Schema::dropIfExists( 'manufacturers' );
45
        }
46
    };