Subversion-Projekte lars-tiefland.zeldi.de_alt

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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