Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 153 | Revision 155 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
151 lars 1
<?php
2
 
153 lars 3
    use Illuminate\Database\Migrations\Migration;
4
    use Illuminate\Database\Schema\Blueprint;
5
    use Illuminate\Support\Facades\Schema;
151 lars 6
 
153 lars 7
    return new class extends Migration
151 lars 8
    {
153 lars 9
        /**
10
         * Run the migrations.
11
         *
12
         * @return void
13
         */
14
        public function up(): void
15
        {
16
            Schema::create( 'price_agencies', function ( Blueprint $table )
17
            {
18
                $table->id();
19
                $table->string( 'name' )->default( '' );
20
                $table->string( "short", 4 )->default( '' );
21
                $table->string( "re_short", 4 )->default( '' );
22
                $table->unsignedTinyInteger( 'preisindex_ek' )->default( '1' );
23
                $table->string( 'importtool' )->default( '' );
154 lars 24
                $table->enum( 'ebay', ["0","1"] )->default( '0' );
25
                $table->enum( 'klonziel', ["0","1"] )->default( '0' );
153 lars 26
                $table->string( 'konroot' )->default( '' );
154 lars 27
                $table->enum( 'home', ["0","1"] )->default( '0' );
28
                $table->enum( 'erfassung', ["0","1"] )->default( '0' );
153 lars 29
                $table->string( 'database' )->default( '' );
30
                $table->string( 'order_db' )->default( '' );
31
                $table->string( 'mail_server' )->default( '' );
32
                $table->string( 'mail_user' )->default( '' );
33
                $table->string( 'mail_password' )->default( '' );
34
                $table->string( 'domain' )->default( '' );
35
                $table->unsignedTinyInteger( 'status' )->default( '0' );
36
                $table->unsignedInteger( 'rang' )->default( '0' );
37
                $table->text( 'such_algo' )->default( '' );
38
                $table->boolean( "uses_dump" )->default( '1' );
39
                $table->boolean( "plesk" )->default( '1' );
40
                $table->string( 'user' )->default( '' );
41
                $table->string( 'server' )->default( '' );
42
                $table->string( 'plesk_key' )->default( '' );
43
                $table->timestamps();
44
            } );
45
        }
151 lars 46
 
153 lars 47
        /**
48
         * Reverse the migrations.
49
         *
50
         * @return void
51
         */
52
        public function down(): void
53
        {
54
            Schema::dropIfExists( 'shops' );
55
        }
56
    };