Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 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( 'payment_methods', function ( Blueprint $table )
17
            {
18
                $table->id();
19
                $table->string( 'name' )->default( '' );
20
                $table->string( 'internal_name' )->default( '' );
21
                $table->float( 'discount' )->default( '0' );
22
                $table->text( 'info_in_shop' )->default( '' );
23
                $table->text( 'shipping_text' )->default( '' );
24
                $table->timestamps();
25
            } );
26
        }
27
 
28
        /**
29
         * Reverse the migrations.
30
         *
31
         * @return void
32
         */
33
        public function down(): void
34
        {
35
            Schema::dropIfExists( 'payment_methods' );
36
        }
37
    };