Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

Conversation

@rsm0001
Copy link

@rsm0001 rsm0001 commented Jun 5, 2017

@kgururaj - committed schema changes
FYI - @kdatta

Copy link

@kgururaj kgururaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass

sa.UniqueConstraint('field_set_id', 'field',
name='unique_name_per_field_set_constraint'),
)
type = sa.Column(sa.Enum('Integer', 'String', 'Float', 'Flag', name='type_enum'))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullable=False

is_filter = sa.Column(sa.Boolean, nullable=False)
is_format = sa.Column(sa.Boolean, nullable=False)
is_info = sa.Column(sa.Boolean, nullable=False)
length_type = sa.Column(sa.Enum('A', 'R', 'G', 'VAR', 'NUM', name='length_enum'))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullable = False

is_format = sa.Column(sa.Boolean, nullable=False)
is_info = sa.Column(sa.Boolean, nullable=False)
length_type = sa.Column(sa.Enum('A', 'R', 'G', 'VAR', 'NUM', name='length_enum'))
length_intval = sa.Column(sa.Integer)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set server default 1

except exc.DataError as e:
self.session.rollback()
raise ValueError("{0} : {1} ".format(str(e), guid))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an if statement if( reader) surrounding all the reader statements? ie. allow calling registerFieldSet with reader=None.

@rsm0001
Copy link
Author

rsm0001 commented Jun 19, 2017

@kgururaj - Of the 4 suggestions, the first two could not be implemented. There is at least one field
that has no associated type and length_type attriubutes. The other two have been implemented.

@kgururaj
Copy link

Were these the FILTER fields with no length and type attributes?

@rsm0001
Copy link
Author

rsm0001 commented Jun 21, 2017

Yes karthik. Filter fields.

@rsm0001 rsm0001 closed this Jun 22, 2017
@rsm0001 rsm0001 reopened this Jun 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants