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

Updating to 6.0.1 throws an error #25

Open
Zir0h opened this issue Aug 19, 2022 · 1 comment
Open

Updating to 6.0.1 throws an error #25

Zir0h opened this issue Aug 19, 2022 · 1 comment

Comments

@Zir0h
Copy link

Zir0h commented Aug 19, 2022

dipdup.exceptions.DatabaseConfigurationError: DipDup can't initialize database with given models and parameters
________________________________________________________________________________

Model field names must differ from table name

Model: `Shareholder`
Table: `shareholder`

class Shareholder(Model):
split_contract: ForeignKeyFieldInstance[Holder] = fields.ForeignKeyField(
'models.SplitContract', 'shareholder', index=True
)
holder: ForeignKeyFieldInstance[Holder] = fields.ForeignKeyField('models.Holder', 'shareholder', index=True)
shares = fields.BigIntField()
holder_type = fields.CharEnumField(ShareholderStatus, default=ShareholderStatus.unspecified)
holder_id: str

@Zir0h
Copy link
Author

Zir0h commented Aug 19, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant