Database Migration
Database Migration adalah Version control untuk skema database. Migration memungkinkan perubahan struktur tabel secara terorganisir, bisa di-rollback jika terjadi error.
// Migration di Laravel
php artisan make:migration create_posts_table
public function up() {
Schema::create('posts', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->text('body');
$table->timestamps();
});
}
Istilah Terkait
Kembali ke Glosarium Pemrograman
