Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 432 Revision 475
Zeile 11... Zeile 11...
11
         *
11
         *
12
         * @return void
12
         * @return void
13
         */
13
         */
14
        public function up(): void
14
        public function up(): void
15
        {
15
        {
16
            Schema::create( 'directories', function ( Blueprint $table )
16
            if ( !Schema::hasTable( 'directories' ) )
17
            {
17
            {
-
 
18
                Schema::create( 'directories', function ( Blueprint $table )
-
 
19
                {
18
                $table->bigInteger( "id" )->autoIncrement();
20
                    $table->bigInteger( "id" )->autoIncrement();
19
                $table->string( "name" )->default( "" );
21
                    $table->string( "name" )->default( "" );
20
                $table->string( "slug" )->default( "" );
22
                    $table->string( "slug" )->default( "" );
21
                $table->string( "kennung" )->default( '' );
23
                    $table->string( "kennung" )->default( '' );
22
                $table->unsignedTinyInteger( 'articlemaster' )->default( '0' );
24
                    $table->unsignedTinyInteger( 'articlemaster' )->default( '0' );
23
                $table->unsignedTinyInteger( 'status' )->default( '0' );
25
                    $table->unsignedTinyInteger( 'status' )->default( '0' );
24
                $table->string( 'url' )->default( '' );
26
                    $table->string( 'url' )->default( '' );
25
                $table->text( 'description' )->default( '' );
27
                    $table->text( 'description' )->default( '' );
26
                $table->string( 'short_line_1' )->default( '' );
28
                    $table->string( 'short_line_1' )->default( '' );
27
                $table->bigInteger( "directory_id" )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
29
                    $table->bigInteger( "directory_id" )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
28
                $table->string( 'created_by' )->default( '' );
30
                    $table->string( 'created_by' )->default( '' );
29
                $table->string( 'updated_by' )->default( '' );
31
                    $table->string( 'updated_by' )->default( '' );
30
                $table->timestamps();
32
                    $table->timestamps();
-
 
33
                } );
31
            } );
34
            }
32
        }
35
        }
Zeile 33... Zeile 36...
33
 
36
 
34
        /**
37
        /**
35
         * Reverse the migrations.
38
         * Reverse the migrations.