Revision 497 | Blame | Vergleich mit vorheriger | 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( 'payment_methods', function ( Blueprint $table ){$table->id();$table->string( 'name' )->default( '' );$table->string( 'internal_name' )->default( '' );$table->float( 'discount' )->default( '0' );$table->text( 'info_in_shop' )->default( '' );$table->text( 'shipping_text' )->default( '' );$table->timestamps();} );}/*** Reverse the migrations.** @return void*/public function down(): void{Schema::dropIfExists( 'payment_methods' );}};