Popularity
5.9
Growing
Activity
0.0
Stable
12
2
3

Monthly Downloads: 66
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Database     PostgreSQL    
Latest version: v0.1.14

postgresql-schema alternatives and similar packages

Based on the "postgresql" category.
Alternatively, view postgresql-schema alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of postgresql-schema or a related project?

Add another 'postgresql' Package

README

PostgreSQL Schema

Package version Build status Dependency status

PostgreSQL Schema is a database migration tool. Based on Schema Evolution Manager.

Installation

The tools can be installed through cabal or stack.

Cabal:

$ cabal install postgresql-schema

Stack:

$ git clone [email protected]:mfine/postgresql-schema.git
$ cd postgresql-schema
$ stack install

Adding Migrations

Add a migration file. The tool schema-add takes as parameters a file and a directory containing migrations. By default, the directory migrations in the current working directory is used. These parameters can be overridden on the command line:

$ schema-add --file new.sql --name add-users --dir scripts

Applying Migrations

Apply migrations to a database. The tool schema-apply takes as parameters a database and a directory containing migrations. By default, the directory migrations in the current working directory is used, and the database specified in DATABASE_URL environment variable is used. These parameters can be overridden on the command line:

$ schema-apply --url postgres://[email protected]/database --dir scripts

Clearing Migrations

Remove public and migrations schema from a database - USE CAREFULLY. The tool schema-clear takes as paramaters a database. By default, the database specified in DATABASE_URL environment variable is used. This parameter can be overriden on the command line:

$ schema-clear --url postgres://[email protected]/database