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

Updates to schema #153

Closed
robmarkcole opened this issue Apr 1, 2023 · 0 comments
Closed

Updates to schema #153

robmarkcole opened this issue Apr 1, 2023 · 0 comments

Comments

@robmarkcole
Copy link
Owner

Changes:

  1. states_meta contains entity_id

image

  1. last_updated no longer used, now use last_updated_ts

image

Need to join in query:

SELECT state, last_updated_ts, states_meta.entity_id
FROM states
JOIN states_meta
ON states.metadata_id = states_meta.metadata_id;

image

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

No branches or pull requests

1 participant