Skip to content

Add documentation for altering populated pipelines #1157

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

Closed
sreguyal opened this issue Apr 16, 2024 · 4 comments
Closed

Add documentation for altering populated pipelines #1157

sreguyal opened this issue Apr 16, 2024 · 4 comments
Assignees
Labels
duplicate Indicates similar issues, pull requests, or discussions enhancement Indicates new improvements

Comments

@sreguyal
Copy link

Feature Request

Problem

Looking for documentation for the alter command. The relevant page in the DataJoint documentation (Schema Design > Schema Modification > Altering Populated Pipelines) is currently blank.

@sreguyal sreguyal added the enhancement Indicates new improvements label Apr 16, 2024
@dimitri-yatsenko dimitri-yatsenko self-assigned this Jul 10, 2024
@kushalbakshi
Copy link
Contributor

Hi @sreguyal, thank you for your patience with this. We're going through a round of updates to our documentation. The draft PR #1197 contains information about this if you're needing to use alter(). Here's the snippet from the documentation that will be most useful for you:

Let's say we have a table Student with the following attributes:

@schema
class Student(dj.Manual):
    definition = """
    student_id: int
    ---
    first_name: varchar(40)
    last_name: varchar(40)
    home_address: varchar(100)
    """

We can modify the table to include a new attribute email:

Student.definition = """
student_id: int
---
first_name: varchar(40)
last_name: varchar(40)
home_address: varchar(100)
email: varchar(100)
"""
Student.alter()

alter() currently does not work for updating primary key attributes.

Copy link

This issue is stale because it has been open for 45 days with no activity.

@github-actions github-actions bot added the stale Indicates issues, pull requests, or discussions are inactive label Mar 14, 2025
@CBroz1
Copy link
Contributor

CBroz1 commented Mar 14, 2025

Duplicate #1048

@yambottle yambottle added duplicate Indicates similar issues, pull requests, or discussions and removed stale Indicates issues, pull requests, or discussions are inactive labels Mar 14, 2025
@yambottle
Copy link
Contributor

Thanks @CBroz1 ! Going to close this due to duplicate, feel free to reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Indicates similar issues, pull requests, or discussions enhancement Indicates new improvements
Projects
None yet
Development

No branches or pull requests

5 participants