2025_03_17_add_parents_document_files.php 859 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::table('members', function (Blueprint $table) {
  15. $table->string('father_document_files')->nullable()->after('father_fiscal_code');
  16. $table->string('mother_document_files')->nullable()->after('mother_fiscal_code');
  17. });
  18. }
  19. /**
  20. * Reverse the migrations.
  21. *
  22. * @return void
  23. */
  24. public function down()
  25. {
  26. Schema::table('members', function (Blueprint $table) {
  27. $table->dropColumn('father_document_files');
  28. $table->dropColumn(columns: 'mother_document_files');
  29. });
  30. }
  31. };