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

2023 11 21 datamodel corrections #8

Merged
merged 9 commits into from
Nov 22, 2023
Merged

Conversation

sjib
Copy link
Contributor

@sjib sjib commented Nov 21, 2023

@sjib sjib requested a review from ponceta November 21, 2023 17:19
@sjib
Copy link
Contributor Author

sjib commented Nov 21, 2023

@ponceta Can you review and check with @3nids if anything is needed in the CI process to set :SRID ?

ALTER TABLE tww_od.data_media ADD COLUMN path TEXT;

Co-authored-by: Denis Rouzaud <[email protected]>
@ponceta
Copy link
Member

ponceta commented Nov 22, 2023

Ready to merge

@@ -169,7 +169,7 @@ COMMENT ON COLUMN tww_od.data_media.identifier IS 'yyy_Name des Datenträgers. B
COMMENT ON COLUMN tww_od.data_media.kind IS 'Describes the type of data media / Beschreibt die Art des Datenträgers / Décrit le genre de support de données';
ALTER TABLE tww_od.data_media ADD COLUMN location varchar(50) ;
COMMENT ON COLUMN tww_od.data_media.location IS 'Location of the data medium / Ort, wo sich der Datenträger befindet / Emplacement du support de données';
ALTER TABLE tww_od.data_media ADD COLUMN path varchar(1023) ;
ALTER TABLE tww_od.data_media ADD COLUMN path TEXT;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain this change? This field should be not longer than 1023 - else it is not a valid URI anymore.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For such large fields, I would be in favor of having a constraint (db or client) instead. It is then easier for the user to understand why it is blocking and give the user some context.

Using a db defined field size could in some cases just truncate their content.

But if that's an issue I can live with both since there's not so much difference :
https://stackoverflow.com/questions/4848964/difference-between-text-and-varchar-character-varying

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussion about implementation length restrictions see #10

@sjib

This comment was marked as off-topic.

@ponceta

This comment was marked as off-topic.

@ponceta
Copy link
Member

ponceta commented Nov 22, 2023

Moved discussion to issue :
#11

@ponceta ponceta mentioned this pull request Nov 22, 2023
7 tasks
@3nids 3nids merged commit d29b1b2 into main Nov 22, 2023
@3nids 3nids deleted the 2023-11-21-datamodel_corrections branch November 22, 2023 16:20
@cymed cymed mentioned this pull request Dec 8, 2023
cymed pushed a commit that referenced this pull request Jul 18, 2024
Add AG6496 schema
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.

3 participants