Skip to content

changed migrate_db.sh data to add PositionHistory, and added dummy da…#596

Merged
MImran2002 merged 13 commits into
PeeWeeAttributefrom
PeeWeeAttribute_PosHis
Jul 6, 2026
Merged

changed migrate_db.sh data to add PositionHistory, and added dummy da…#596
MImran2002 merged 13 commits into
PeeWeeAttributefrom
PeeWeeAttribute_PosHis

Conversation

@conwelld

Copy link
Copy Markdown

Changes

  • changed migrate_db.sh data to add PositionHistory, and added demo data to demo_data.py to test data tables to work through mysql

Testing

  • used terminal to access mysql and show tables, and look at position history and changes were made

@nahom70 nahom70 added epic A project that will require multiple sub-tasks to complete and removed epic A project that will require multiple sub-tasks to complete labels Jul 1, 2026
Comment thread app/models/positionHistory.py
Comment thread app/models/positionHistory.py Outdated
Department = ForeignKeyField(Department)
Description = TextField(default=None)
Department = ForeignKeyField(Department)
PositionHistory._meta.set_primary_key('positioncode_revisiondate_status', CompositeKey('positioncode', 'revisiondate', 'status'))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Image using like this is mores standard then doing positionhistoy.meta and so on. This is a tip, if you are implementing something in the model and it is different than usual implementation try looking at other models or even other repos like celts. Your method is another method but not the method SSDT does.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Another was the decision to have them as composite key discussed as I didn't see them on the board. Just want to make sure from my end.

Comment thread database/demo_data.py
Comment thread app/models/positionHistory.py Outdated
Description = TextField(default=None)
Department = ForeignKeyField(Department)

class Meta:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should be nested within positionhistory

@MImran2002 MImran2002 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

resolve the merge conflict

@MImran2002 MImran2002 merged commit 05bd744 into PeeWeeAttribute Jul 6, 2026
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.

4 participants