Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rramsden/scribe

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scribe

Scribe allows you to setup migrations for your Elixir projects.

Build Status

Usage

Add scribe and postgres as mix dependencies. Note: Scribe only supports postgres at the moment, if you want to use another database adapter please contribute!

defp deps do
[ {:scribe, github: "rramsden/scribe"},
  {:pgsql, github: "semiocast/pgsql"} ]
end

Initialize a mix project with scribe

mix scribe.init #=> CREATE db/migrations
                    CREATE db/scribe.conf
                    CREATE lib/my_module/tasks/db.ex

mix compile # needed to run custom mix tasks

Add your database settings in db/scribe.conf

[
  adapter: "postgres",
  host: "localhost",
  database: "database",
  user: "user",
  password: "password"
]

Run a Mix Task

mix db.migration some_migration_name # create a migration
mix db.migrate # run migrations
mix db.rollback # roll a migration back
mix db.drop # drop database
mix db.create # create database

License

MIT license.

See the LICENSE.

About

A database migration library for Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.