Subversion-Projekte lars-tiefland.webanos.zeldi.de

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
4 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( 'actions', function ( Blueprint $table )
17
            {
18
                $table->id();
19
                $table->foreignId( 'shop_id' )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
20
                $table->string( "headline" )->default( "" );
21
                $table->text( "text" )->default( "" );
22
                $table->unsignedTinyInteger( 'art' )->default( '1' );
23
                $table->unsignedTinyInteger( 'rang' )->default( '0' );
24
                $table->text( "config" )->default( "" );
25
                $table->string( "category" )->default( "" );
26
                $table->text( "notes" )->default( "" );
27
                $table->date( 'valid_from' );
28
                $table->date( 'valid_to' );
29
                $table->string( 'created_by' )->default( '' );
30
                $table->string( 'updated_by' )->default( '' );
31
                $table->timestamps();
32
            } );
33
        }
34
 
35
        /**
36
         * Reverse the migrations.
37
         *
38
         * @return void
39
         */
40
        public function down(): void
41
        {
42
            Schema::dropIfExists( 'actions' );
43
        }
44
    };