![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#12
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#13
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#14
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#15
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#16
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#17
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#18
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
#19
| |||
| |||
|
|
entity (id, live_version_id NULL, preview_version_id NULL) version (id, parent_entity_id) where version.parent_entity_id must be a valid entity.id, and that entity must have the version.id in either live/preview version_id. Is this a common set up? Does it make sense? Is there a way to express this requirement at the DB level (I'm specifically using MySQL, but in general I'd like to know) Or, did I model my data in a bad way? Thanks, Daniel. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |