Skip to content

Migration

Josh Wright edited this page Jan 14, 2021 · 3 revisions

Migration

A Migration provides functionality for adding and rolling back changes to the schema of a relational database.

public protocol Migration

Requirements

up(schema:​)

The schema changes that should be run when applying this migration to a database.

func up(schema: Schema)

Parameters

  • schema: The schema to build changes on.

down(schema:​)

The schema changes that should be run when rolling back this migration to a database.

func down(schema: Schema)

Parameters

  • schema: The schema to build changes on.
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally