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

StorageHost table #209

Open
ketiltrout opened this issue Nov 4, 2024 · 0 comments
Open

StorageHost table #209

ketiltrout opened this issue Nov 4, 2024 · 0 comments
Labels
db For database changes (schema migrations) feature question

Comments

@ketiltrout
Copy link
Member

The StorageNode.address and StorageNode.username columns aren't really node-specific, but rather specific to the host on which they are located.

From an object-oriented point of view, we should create a new StorageHost table to record these per-host:

def StorageHost(base_model):
    name = pw.CharField(max_length=64, unique=True)
    username = pw.CharField(max_length=64, null=True)
    address = pw.CharField(max_length=255, null=True)

then delete StorageNode.address and StorageNode.username, and convert StorageNode.host into a reference to that table.

Can't be done while we're still running alpenhorn-1, though.

@ketiltrout ketiltrout added feature question db For database changes (schema migrations) labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
db For database changes (schema migrations) feature question
Projects
None yet
Development

No branches or pull requests

1 participant