Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
st3fan
· 11y ago · 0 comments
Yes if you have one MongoDB database that uses `title` and another one that uses `post_title` then you have to adjust your code for that.
Guess what. Same thing applies to SQL.
Comments
[–]
freebullets
11y ago
In SQL you can't have a table whose title field is called either `title` or `post_title` depending on which record you're looking at.
[–]
dhatch387
11y ago
You easily could have this in SQL if you designed a poor schema or failed to migrate data from the previous field name.