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

dataset table has a dataset_path column but the insert_dataset() method does not include it #30

Closed
ansonnn07 opened this issue Sep 16, 2021 · 3 comments · Fixed by #31
Closed
Assignees

Comments

@ansonnn07
Copy link
Collaborator

@ansonnn07
Copy link
Collaborator Author

@ansonnn07 ansonnn07 changed the title dataset table has a dataset_path column the insert_dataset() method does not include it dataset table has a dataset_path column but the insert_dataset() method does not include it Sep 16, 2021
@rchuzh99 rchuzh99 pinned this issue Sep 16, 2021
@ansonnn07
Copy link
Collaborator Author

https://github.com/msf4-0/Integrated-Vision-Inspection-System/blob/b9b18273171375f7f54fdbfd29f42d420af50856/src/lib/data_manager/database_manager.py#L358-L372

The problem is with Line 366 where we created the table with dataset_path as NOT NULL, so when I tried to create a new dataset, Postgres will throw an error saying it's violated the NOT NULL constraints 😥 So I delete that line and manually recreate the table without the dataset_path to work

@ansonnn07 ansonnn07 self-assigned this Sep 17, 2021
@ansonnn07 ansonnn07 linked a pull request Sep 17, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants