Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class ChangeJenkelTSiswa extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('t_siswa', function($table){
- $table->renameColumn('jenis_kelamin', 'jenkel');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('t_siswa', function($table){
- $table->renameColumn('jenkel', 'jenis_kelamin');
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement