Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default value not changed #112

Closed
ghost opened this issue Jan 25, 2015 · 1 comment
Closed

Default value not changed #112

ghost opened this issue Jan 25, 2015 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Jan 25, 2015

Table looks like this:
Table "public.foobar"
active | character varying(1) | default 'Y'::character varying

Output from dbtoyaml
table foobar:
columns:
- active:
default: '''N''::character varying'
type: character varying(1)

yamltodb dbase1 temp.yaml

Reports no change

@jmafc
Copy link
Member

jmafc commented Jan 25, 2015

A quick look at the code (https://github.com/perseas/Pyrseas/blob/master/pyrseas/dbobject/column.py lines 162-166) shows that we took care of a new default being specified or an existing default being dropped but we missed checking for a change in the default. It shouldn't be difficult to fix. I'll try to take care of it early next week.

@jmafc jmafc added the yamltodb label Jan 26, 2015
@jmafc jmafc closed this as completed in fb8472d Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant