Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Latest commit

 

History

History

migrations

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Migrations

In this folder are the migrations used to generate the database tables and initialize them. They are plain SQL files in the respective dialect that each database supports. More information about migrations can be found on Diesel's website

Migrations are organized according to which database they are for since each database software has its own syntax ie SERIAL in Postgres vs AUTOINCREMENT in SQLite. Each database folder contains a series of folders dated and named based on the migration with an up.sql and a down.sql file to apply and revert the migration.