Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 278 Revision 297
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
3
use Illuminate\Database\Migrations\Migration;
3
    use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
4
    use Illuminate\Database\Schema\Blueprint;
Zeile 5... Zeile 5...
5
use Illuminate\Support\Facades\Schema;
5
    use Illuminate\Support\Facades\Schema;
6
 
-
 
7
return new class extends Migration {
-
 
8
    /**
-
 
9
     * Run the migrations.
-
 
10
     *
-
 
11
     * @return void
-
 
12
     */
6
 
-
 
7
    return new class extends Migration
-
 
8
    {
-
 
9
        /**
-
 
10
         * Run the migrations.
-
 
11
         *
-
 
12
         * @return void
-
 
13
         */
13
    public function up(): void
14
        public function up(): void
-
 
15
        {
14
    {
16
            Schema::create( 'directories', function ( Blueprint $table )
15
        Schema::create('directories', function (Blueprint $table) {
17
            {
16
            $table->bigInteger("id")->autoIncrement();
18
                $table->bigInteger( "id" )->autoIncrement();
17
            $table->string("name")->default("");
19
                $table->string( "name" )->default( "" );
18
            $table->string("slug")->default("");
20
                $table->string( "slug" )->default( "" );
19
            $table->string("kennung")->default('');
21
                $table->string( "kennung" )->default( '' );
20
            $table->unsignedTinyInteger('status')->default('0');
22
                $table->unsignedTinyInteger( 'status' )->default( '0' );
21
            $table->string('url')->default('');
23
                $table->string( 'url' )->default( '' );
22
            $table->text('description')->default('');
24
                $table->text( 'description' )->default( '' );
23
            $table->string('short_line_1')->default('');
25
                $table->string( 'short_line_1' )->default( '' );
24
            $table->bigInteger("directory_id")->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
26
                $table->bigInteger( "directory_id" )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
25
            $table->string('created_by')->default('');
27
                $table->string( 'created_by' )->default( '' );
26
            $table->string('updated_by')->default('');
28
                $table->string( 'updated_by' )->default( '' );
27
            $table->timestamps();
29
                $table->timestamps();
Zeile 28... Zeile 30...
28
        });
30
            } );
29
    }
31
        }
30
 
32
 
31
    /**
33
        /**
32
     * Reverse the migrations.
34
         * Reverse the migrations.
33
     *
35
         *
34
     * @return void
36
         * @return void
35
     */
37
         */
36
    public function down(): void
38
        public function down(): void
37
    {
39
        {