📕
Sprnva Docs
  • Introduction
  • What's New?
  • Installation
    • Requirements
    • Download Sprnva zip no composer required
    • Install Sprnva Using Composer
    • Setup Config
  • Deployment
  • File Structure
  • Database
    • Select
    • SelectLoop
    • Insert
    • Update
    • Delete
    • Query
    • Seeder
    • Paginate
    • With
    • andFilter
    • withCount
    • get
  • Query Builder
  • Migration
    • INSTANCES
      • NEW
      • RENAMETABLE
      • DROP
      • CHANGE
    • DUMPS
      • dump
      • dump prune
    • MAKE
    • MIGRATE
      • migrate
      • migrate fresh
    • ROLLBACK
  • Routing
    • with parameter
    • multiple parameters
    • with closure
    • group
    • controller grouping
  • Controllers
    • methods
  • Views
    • Passing Parameters
  • Validation
    • validate
      • validation type
  • Authentication
  • Alert Messages
  • Default Helpers
  • CSRF Protection
  • Email
  • Packages
    • Fortify
  • Themes and Templates
Powered by GitBook
On this page
  1. Migration

INSTANCES

Instances is the mode that we set and then use to identify a migration file.

  • NEW - This will create a new table in the database

  • RENAMETABLE - Will rename a table in the database

  • DROP - This will drop a table in the database

  • CHANGE - This is like altering the table columns

INSTANCE USAGE

Let's take a look how to use this instances.

  • The up is always used in migrating the migration files.

  • The down is used in the rollback of the migration or like a reverse of the up

PreviousMigrationNextNEW

Last updated 2 years ago