-
Notifications
You must be signed in to change notification settings - Fork 36
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
Initial Schema Creation for Age & Stratigraphy #5274
base: production
Are you sure you want to change the base?
Conversation
fields=[ | ||
('id', models.AutoField(db_column='AbsoluteAgeID', primary_key=True, serialize=False)), | ||
('absoluteage', models.DecimalField(blank=True, db_column='AbsoluteAge', decimal_places=10, max_digits=22, null=True)), | ||
('agetype', models.CharField(blank=True, db_column='AgeType', max_length=64, null=True)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to be handled like cotype and need for list creation in the migration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from control vocab (sedimentation, metamorphic, inclusion, original, fall,...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good based on the code changes.
One question– the ranks in the tectonic tree are not included in this PR, what is the plan for creating the tree defaults? Presumably this tree will only be necessary for paleo/geo collections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to test this again by running the migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
I think we should have the tree table names follow the convention the other tree tables follow.
Current:
tectonictreedef
tectonictreedefitem
tectonicunit
Desired:
tectonicunittreedef
tectonicunittreedefitem
tectonicunit
This better follows our existing convention.
-
The tables exist (yay) but the schema records do not (boo)
@@ -18,23 +18,36 @@ | |||
('AbsoluteAgeAttachment', None), | |||
] | |||
PICKLIST_NAME = 'AgeType' | |||
DEFAULT_AGE_TYPES = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grantfitzsimmons, can you let me know which types you would like here
Fixes #5178
TODO
Checklist
and self-explanatory (or properly documented)
Testing instructions
TODO