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

Refactor: dataset - use id on all endpoints and cli #65

Merged
merged 9 commits into from
May 31, 2023

Conversation

jcace
Copy link
Contributor

@jcace jcace commented May 19, 2023

closes #64

@jcace
Copy link
Contributor Author

jcace commented May 30, 2023

Requires the following to be run on the DB to migrate:

UPDATE contents
SET dataset_id = (
    SELECT id FROM datasets WHERE name = contents.dataset_name
);

On sqlite:

sqlite3 delta-dm.db 'UPDATE contents SET dataset_id = (SELECT id FROM datasets WHERE name = contents.dataset_name);'

@jcace jcace force-pushed the refactor.datasetIdEndpoints branch from 5ee1411 to 5e128cf Compare May 30, 2023 23:59
@jcace jcace merged commit eac0132 into main May 31, 2023
@jcace jcace deleted the refactor.datasetIdEndpoints branch May 31, 2023 16:54
@jcace jcace mentioned this pull request May 31, 2023
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 this pull request may close these issues.

[Refactor] Dataset - ID as primary identifier instead of name
1 participant