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

APIs for data model changes #223

Closed
kgodey opened this issue Jun 9, 2021 · 2 comments
Closed

APIs for data model changes #223

kgodey opened this issue Jun 9, 2021 · 2 comments
Labels
type: enhancement New feature or request work: backend Related to Python, Django, and simple SQL

Comments

@kgodey
Copy link
Contributor

kgodey commented Jun 9, 2021

Problem

Users may want to alter their data model after they've created tables and have some data. We should allow them to do so.

Proposed solution

DB functions for most of this work have already been implemented. We need to expose them via APIs.

We need APIs for:

  1. Moving columns from table A to an existing table B with a foreign key in A
  2. Moving columns from table A to a new table C
  3. Merging existing tables A and B

The API for moving columns between existing tables should take options for how to handle data that cannot be easily mapped from table A to table B due to multiple values existing for the same foreign key ID. Options are:

  • Use only one of the values
  • Automatically create an intermediate value.

Please write a technical spec for this on the wiki's Architecture section before starting work on this issue. Get feedback from @kgodey and @mathemancer.

Additional context

@kgodey kgodey added type: enhancement New feature or request work: backend Related to Python, Django, and simple SQL ready Ready for implementation labels Jun 9, 2021
@kgodey kgodey added this to the 8. Data Modeling milestone Jun 9, 2021
@github-actions
Copy link

This issue has not been updated in 90 days and is being marked as stale.

@github-actions github-actions bot added the stale label Mar 11, 2022
@kgodey kgodey added status: draft and removed ready Ready for implementation stale labels Mar 11, 2022
@kgodey
Copy link
Contributor Author

kgodey commented Mar 29, 2022

I'm going to close this, we'll create more detailed tickets once we have a design for this.

@kgodey kgodey closed this as completed Mar 29, 2022
Repository owner moved this from Draft to Done in [NO LONGER USED] Mathesar work tracker Mar 29, 2022
@kgodey kgodey removed this from the [Beta] Data Modeling milestone Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request work: backend Related to Python, Django, and simple SQL
Projects
No open projects
Development

No branches or pull requests

1 participant