tweak output order

This commit is contained in:
Robert Lechte 2016-08-11 02:57:38 +12:00
parent 7559a377e1
commit 6b136a5112
4 changed files with 16 additions and 13 deletions

View File

@ -52,14 +52,14 @@ class Migration(object):
self.add(self.changes.views(drops_only=True))
self.add(self.changes.functions(drops_only=True))
self.add(self.changes.extensions(creations_only=True))
self.add(self.changes.schema())
self.add(self.changes.sequences(drops_only=True))
self.add(self.changes.extensions(creations_only=True))
self.add(self.changes.views(creations_only=True))
self.add(self.changes.functions(creations_only=True))
self.add(self.changes.sequences(drops_only=True))
self.add(self.changes.enums(drops_only=True, modifications=False))
@property

View File

@ -8,7 +8,7 @@ readme = io.open('README.rst').read()
setup(
name='migra',
version='0.1.1470742990',
version='0.1.1470840894',
url='https://github.com/djrobstep/migra',
description='Like diff but for PostgreSQL schemas',
long_description=readme,

View File

@ -26,7 +26,8 @@ CREATE TABLE orders (
order_id integer primary key unique,
shipping_address text,
status shipping_status,
status2 text
status2 text,
h hstore
);
CREATE TABLE order_items (

View File

@ -10,6 +10,10 @@ drop view if exists "public"."vvv" cascade;
drop function if exists "public"."changed"(i integer, t text[]) cascade;
create extension "hstore" with schema "public" version '1.3';
create extension "postgis" with schema "public" version '2.2.1';
drop table "public"."unwanted";
create table "public"."bug" (
@ -46,6 +50,8 @@ create type "public"."unused_enum" as enum ('a', 'b', 'c');
alter table "public"."orders" alter column "status" set data type shipping_status using "status"::shipping_status;
alter table "public"."orders" add column "h" hstore;
alter table "public"."orders" alter column "order_id" drop default;
alter table "public"."orders" alter column "status2" set data type text;
@ -84,14 +90,6 @@ drop index if exists "public"."products_price_idx";
CREATE INDEX products_name_idx ON products USING btree (name);
drop sequence if exists "public"."orders_order_id_seq";
drop sequence if exists "public"."unwanted_id_seq";
create extension "hstore" with schema "public" version '1.3';
create extension "postgis" with schema "public" version '2.2.1';
create view "public"."vvv" as SELECT 2;
@ -117,4 +115,8 @@ $$
$$
language PLPGSQL VOLATILE RETURNS NULL ON NULL INPUT SECURITY DEFINER;
drop sequence if exists "public"."orders_order_id_seq";
drop sequence if exists "public"."unwanted_id_seq";
drop type "public"."unwanted_enum";