Blame | Letzte Änderung | Log anzeigen | RSS feed
<?phpuse Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;return new class extends Migration{/*** Run the migrations.** @return void*/public function up(): void{Schema::create( 'manufacturers', function ( Blueprint $table ){$table->id();$table->string( 'name' )->default( '' );$table->string('headline')->default('');$table->text( 'description' )->default( '' );$table->string('logo1')->default('');$table->string('logo1_href')->default('');$table->string('logo2')->default('');$table->string('logo2_href')->default('');$table->boolean('property_1')->default('0');$table->boolean('property_2')->default('0');$table->boolean('property_3')->default('0');$table->boolean('calculation')->default('0');$table->string( 'created_by' )->default( '' );$table->string( 'updated_by' )->default( '' );$table->timestamps();} );}/*** Reverse the migrations.** @return void*/public function down(): void{Schema::dropIfExists( 'manufacturers' );}};