At some point today seeming randomly, a couple (literally) of integer fields on a custom content type seem to have disappeared. They no longer show in the edit/add content form, nor does the field show up anymore on those content pages or views that referenced them.
I can however still see references to the fields in the database, and browsing shows the data that was in there. i.e.
field_data_field_price_dkk
field_data_field_price_euro
field_revision_field_price_dkk
field_revision_field_price_euro
The only thing that's different about these fields in case it's relevant, is a few days ago I deleted both of them (which were at the time Number Decimal fields) and re-created them both with the same field names (as integers.) Yes this deleted the existing data, but it was all re-added afterwards on the new fields and seemed to be working fine until they vanished from the site today.
Anyone have a clue about how to fix this or of there's something to check for in the database? There's not a ton of information on the site yet so I could always re-create the fields again I suppose, but I don't want to run into the same problem again if I do.
No problem. Wish I could pay it forward more on the forums, but I still have a lot to learn.
1) This is a fresh build on Backdrop. (It's been updated version wise while in the works, but wasn't ported.)
2) I'm actually working on 3 concurrently - but this is the first one that's gone 'live' - the other two are still works in progress just residing on my local machine and using WAMP.
3) That's a tough one to answer, again I haven't tried to make a direct port over from D7 so I can't really comment on what the documentation currently says, nor did I read an awful lot about the differences between the two as far as how things are kept file-wise (past template differences at least.)
Coming from D7 I suppose I just got accustomed to being able to overwrite a DB with one from a different environment (i.e. WAMP to host) and changes to content types and whatnot being taken care of. I'm not saying it's not well documented that isn't the case, it may well be (I just wasn't aware, and I'm more of a trial by error guy than a read the whole book twice person.)
I suppose in my particular case, were there some further indication that there was a discrepancy between the database fields for said content type and the missing JSON files it would have been pretty easy to sort out, i.e. "warning: you have database entries for the field 'price' but there are no configuration files for this field available in config_@$@#$ so it will not show"
At the same time I can understand that might neglect part of the point of the way things are set up having to check the DB if the JSON files are supposed to come first.
Perhaps some kind of comparison could be made alongside update checks? Most of this back-end stuff is very much out of my league so I have no idea what's practical, but perhaps some kind of config files to DB comparison that only ran periodically wouldn't add too much overhead?