database/migrations/2020_06_25_145406_add_relationships_to_pasiens_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('pasiens', function(Blueprint $table) {
            $table->dropForeign('pasiens_antrian_id_foreign');
        });
        Schema::table('pasiens', function(Blueprint $table) {
            $table->dropIndex('pasiens_antrian_id_foreign');
        });
        Schema::table('pasiens', function(Blueprint $table) {
            $table->integer('antrian_id')->change();
        });
    }
public function down ( ) { Schema :: table ( 'pasiens' , function ( Blueprint $ table ) { $ table -> dropForeign ( 'pasiens_antrian_id_foreign' ) ; } ) ; Schema :: table ( 'pasiens' , function ( Blueprint $ table ) { $ table -> dropIndex ( 'pasiens_antrian_id_foreign' ) ; } ) ; Schema :: table ( 'pasiens' , function ( Blueprint $ table ) { $ table -> integer ( 'antrian_id' ) -> change ( ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .