# Using JSON data type to minimize database schema changes

**URL:** <https://www.rubin.community/t/using-json-data-type-to-minimize-database-schema-changes/1440>\
**Category:** Data Management\
**Created:** [November 30, 2016, 12:19am UTC](https://www.rubin.community/t/using-json-data-type-to-minimize-database-schema-changes/1440 "2016-11-30T00:19:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![afausti](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/afausti/32/934_2.png) [@afausti](https://www.rubin.community/u/afausti)\
**Post date:** [November 30, 2016, 12:19am UTC](https://www.rubin.community/t/using-json-data-type-to-minimize-database-schema-changes/1440/1 "2016-11-30T00:19:24Z")

</div>

This is a proposal for using JSON data type in the SQUASH QA database.

SQUASH uses MySQL/MariaDB for the development and production databases, it is implemented through the [Django-MySQL](http://django-mysql.readthedocs.io/en/latest/index.html) package to add specific features of MySQL/MariaDB to Django.

In particular, we are interested in the JSON data type to store QA outputs from validate\_drp. That seems very convenient as these outputs [can vary widely](https://community.lsst.org/t/json-schema-for-squash/777) and we don’t want to turn all the details into a relational model.

If you are interested in the details of this implementation check [sqr-009](http://sqr-009.lsst.io/en/latest/#setting-up-the-database).

---

<div class="post-metadata">

**Author:** ![frossie](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/frossie/32/9_2.png) [@frossie](https://www.rubin.community/u/frossie)\
**Post date:** [November 30, 2016, 11:06am UTC](https://www.rubin.community/t/using-json-data-type-to-minimize-database-schema-changes/1440/2 "2016-11-30T11:06:37Z")

</div>

I have talked with @fritzm about this and the quote I have on record is “I’m not scared” but he should speak for himself 🙂  
As I recall the question really is how we are going to integrate the shim database back into something fronted by DAX. I am hoping we can get a better idea after our arch doc sprint in Dec/Jan.
