No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2023_03_25_111825_create_tindakans_table.php 962B

1234567891011121314151617181920212223242526272829303132333435
  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. public function up(): void
  11. {
  12. // Schema::create('tindakans', function (Blueprint $table) {
  13. // $table->id();
  14. // $table->unsignedBigInteger('pelaporans_id');
  15. // $table->string('statusTindakan');
  16. // $table->timestamps();
  17. // $table->foreign('pelaporans_id')->references('id')->on('pelaporans')->onDelete('cascade');
  18. // });
  19. Schema::create('tindakans', function (Blueprint $table) {
  20. $table->id();
  21. $table->string('statusTindakan')->nullable();
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. */
  28. public function down(): void
  29. {
  30. Schema::dropIfExists('tindakans');
  31. }
  32. };