jmafc/Pyrseas — Issue #22: Custom type modification is issued as a table modification.
Author: rdunklau
Created: 2012-02-27 10:02:52+00:00
State: open

Test case:
=========

create a fresh database, create a type:
```
create type test_type as (anattr int, anattr2 int);
```

Use yamltodb against the database, with the following db.yaml file (note the missing attribute):

```
language plpgsql:
description: PL/pgSQL procedural language
trusted: true
schema public:
description: standard public schema
type test_type:
attributes:
- anattr: integer
```

```
yamltodb test testcase.yaml
```

Output:
----------

```
ALTER TABLE test_type DROP COLUMN anattr2;
```

Expected output:
------------------------

```
ALTER TYPE test_type DROP ATTRIBUTE anattr2;
```

Not tested:
---------------

Other modifications: adding/altering an attribute