| Zeile 16... |
Zeile 16... |
| 16 |
if ( !Schema::hasTable( 'directories' ) )
|
16 |
if ( !Schema::hasTable( 'directories' ) )
|
| 17 |
{
|
17 |
{
|
| 18 |
Schema::create( 'directories', function ( Blueprint $table )
|
18 |
Schema::create( 'directories', function ( Blueprint $table )
|
| 19 |
{
|
19 |
{
|
| 20 |
$table->bigInteger( "id" )->autoIncrement();
|
20 |
$table->bigInteger( "id" )->autoIncrement();
|
| 21 |
$table->bigInteger( "directory_id" )->nullable();
|
- |
|
| 22 |
$table->foreign( 'directory_id' )->references( 'id' )->on( 'directory' )->cascadeOnUpdate()->nullOnDelete();
|
21 |
$table->foreignId( "directory_id" )->unsigned( false )->nullable()->constrained()->cascadeOnUpdate()->nullOnDelete();
|
| 23 |
$table->string( "name" )->default( "" );
|
22 |
$table->string( "name" )->default( "" );
|
| 24 |
$table->string( "slug" )->default( "" );
|
23 |
$table->string( "slug" )->default( "" );
|
| 25 |
$table->string( "kennung" )->default( '' );
|
24 |
$table->string( "kennung" )->default( '' );
|
| 26 |
$table->unsignedTinyInteger( 'articlemaster' )->default( '0' );
|
25 |
$table->unsignedTinyInteger( 'articlemaster' )->default( '0' );
|
| 27 |
$table->unsignedTinyInteger( 'status' )->default( '0' );
|
26 |
$table->unsignedTinyInteger( 'status' )->default( '0' );
|