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

Adds CreatedAt and UpdatedAt fields in migration that don't exist on models #35

Open
Xipooo opened this issue Jan 15, 2019 · 2 comments

Comments

@Xipooo
Copy link

Xipooo commented Jan 15, 2019

I have an actor model based around the MySQL sakila demo database. There are no CreatedAt or UpdatedAt fields in either the table or model. Yet when I create an initial migration this tool automatically adds them which causes the server to throw an "Unhandled rejection SequelizeDatabaseError: Unknown column 'createdAt' in 'field list'" error when sync'd.

I know how to get around this error by disabling timestamps in my server configuration, but the behavior is quite annoying. The migration shouldn't be adding columns to models that don't exist either in the model definition nor the original database.

@Iwuaa
Copy link

Iwuaa commented Nov 11, 2019

same issue here

@billkiddo
Copy link

I know how to get around this error by disabling timestamps in my server configuration

@Xipooo can you offer more details on how you did it? how the config looks like?

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

3 participants