2017 © Pedro Peláez
 

library pgsql

PostgreSQL vendor-specific DbMover module

image

dbmover/pgsql

PostgreSQL vendor-specific DbMover module

  • Monday, March 26, 2018
  • by monomelodies
  • Repository
  • 1 Watchers
  • 0 Stars
  • 193 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 21 Versions
  • 3 % Grown

The README.md

DbMover/PgSQL

PostgreSQL vendor-specific metapackage for DbMover, (*1)

Installation

$ composer require dbmover/pgsql

Setup and running

See the Dbmover README for instructions on setting up and running DbMover., (*2)

Add the Dbmover\Pgsql\Plugin meta-plugin to simply use the defaults., (*3)

PostgreSQL specific notes

Serial primary keys

PostgreSQL uses the custom SERIAL datatype for defining an auto-incrementing unique column to be used as a primary key. However, this is not an actual datatype but rather shorthand for a more verbose manual command. So (unsurprisingly) DbMover doesn't know what to do with it. Write the more verbose full commands instead:, (*4)

CREATE SEQUENCE IF NOT EXISTS foo_id_seq;
CREATE TABLE foo (
    id INTEGER NOT NULL PRIMARY KEY DEFAULT NEXTVAL('foo_id_seq'::regclass)
);

Database users and privileges

PostgreSQL's INFORMATION_SCHEMA aliases contain more data than you would define in a schema file, especially for routines (its native functions are also exposed there). You should always run DbMover as a user with privileges for only the database being migrated. All plugins try their best to only work on objects defined as public, but better safe than sorry., (*5)

TODO/wishlist

Support for enums

These are implemented in Postgres as a sort of custom data types. Support is on the roadmap, but since I personally never use them it's not very high on my (annoyingly long) list of priorities :), (*6)

The Versions

26/03 2018

dev-master

9999999-dev

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

26/03 2018

0.8.1

0.8.1.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

25/03 2018

0.8.0

0.8.0.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

24/03 2018
24/03 2018
24/03 2018
24/03 2018
24/03 2018
04/04 2017

dev-develop

dev-develop

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

27/02 2017

0.5.0

0.5.0.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

07/11 2016

0.4.5

0.4.5.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

07/11 2016

0.4.4

0.4.4.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

06/11 2016

0.4.3

0.4.3.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

12/08 2016

0.4.2

0.4.2.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

02/08 2016

0.4.1

0.4.1.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst

15/07 2016

0.4.0

0.4.0.0

PostgreSQL vendor-specific DbMover module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marijn Ophorst