pubkey / rxdb

A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/
https://rxdb.info/
Apache License 2.0
21k stars 1.02k forks source link

Option to disable schema validation #140

Closed natew closed 7 years ago

natew commented 7 years ago

Issue

When working locally and iterating fast, having to write migrations or clear data for every schema change is painful. Would be nice to have option to disable the validation.

pubkey commented 7 years ago

Hi @natew My workflow was to delete the database locally on each schema-change. This then does not require migration-strategies when developing.

I don't think it would be helpfull to not validate the schema on dev-mode and work with documents other then on production.

natew commented 7 years ago

My case isn't to do it by default, but just to allow some mode. Maybe set localStorage RxDB.ignoreSchema, so you can play around with schema changes quickly. But it's a super minor thing, ok to close.