hotfix for database upgrades (#147)
hotfix for database upgrades (#147)

If an update to a function changes its trigger type, then delete it and create it again.

I don't want to cause any side effects for other trigger types so I'm limiting this to the database. I also don't want to compare against one particular format for PubSub because that may change over time (the API currently returns pubsubTrigger and will eventually return an eventTrigger after a flag flip)
firebase/firebase-tools,lguzzon/firebase-tools,firebase/firebase-tools,firebase/firebase-tools,firebase/firebase-tools,firebase/firebase-tools,lguzzon/firebase-tools