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 ChangeNamaWalkelTKelas extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('t_kelas', function($table) {
- $table->renameColumn('nama_walkel', 'nama_wali_kelas');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('t_kelas', function($table) {
- $table->renameColumn('nama_wali_kelas', 'nama_walkel');
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment