Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 952 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 952 Revision 955
Zeile 18... Zeile 18...
18
                Schema::create( 'items', function ( Blueprint $table )
18
                Schema::create( 'items', function ( Blueprint $table )
19
                {
19
                {
20
                    $table->id();
20
                    $table->id();
21
                    $table->foreignId( "manufacturer_id" )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
21
                    $table->foreignId( "manufacturer_id" )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
22
                    $table->foreignId( "directory_id" )->unsigned( false )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
22
                    $table->foreignId( "directory_id" )->unsigned( false )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
23
                    $table->foreignId( "shipping_group_id" )->unsigned( false )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
23
                    $table->foreignId( "shipping_group_id" )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
24
                    $table->string( "name" )->default( '' );
24
                    $table->string( "name" )->default( '' );
25
                    $table->string( "slug" )->default( '' );
25
                    $table->string( "slug" )->default( '' );
26
                    $table->unsignedTinyInteger( 'status' )->default( '0' );
26
                    $table->unsignedTinyInteger( 'status' )->default( '0' );
27
                    $table->float( 'weight' )->default( '0.00' );
27
                    $table->float( 'weight' )->default( '0.00' );
28
                    $table->text( 'description' )->default( '' );
28
                    $table->text( 'description' )->default( '' );