# SQL bugs with Docker image?

**URL:** <https://community.dreamfactory.com/t/sql-bugs-with-docker-image/1883>\
**Category:** App Configuration\
**Created:** [December 3, 2015, 7:10pm UTC](https://community.dreamfactory.com/t/sql-bugs-with-docker-image/1883 "2015-12-03T19:10:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcummins](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/bcummins/32/508_2.png) [@bcummins](https://community.dreamfactory.com/u/bcummins)\
**Post date:** [December 3, 2015, 7:10pm UTC](https://community.dreamfactory.com/t/sql-bugs-with-docker-image/1883/1 "2015-12-03T19:10:10Z")

</div>

I’m installing DF off the dreamfactorysoftware/df-docker image.

It runs fine, and I’m able to login.

But when I try to follow the Angular SDK example I cannot complete the setup tasks.

> **[dreamfactorysoftware/angular-sdk](https://github.com/dreamfactorysoftware/angular-sdk)**
>
> An address book app for AngularJS showing user registration, user login, and CRUD - dreamfactorysoftware/angular-sdk

There appears to be issues with DF’s sql statements.

For example, when I go to CORS set Origin, Paths, and Headers to \*, set Max Age to 0, allow all HTTP verbs, check the Enabled box, and click update I get the following.

Api Error  
SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: cors\_config.created\_date (SQL: insert into “cors\_config” (“origin”, “path”, “method”, “enabled”, “header”, “max\_age”, “created\_by\_id”) values (\*, \*, 1, 1, \*, 0, 1))

Any ideas?

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [December 3, 2015, 7:53pm UTC](https://community.dreamfactory.com/t/sql-bugs-with-docker-image/1883/2 "2015-12-03T19:53:13Z")

</div>

Just replied to your post on the github repo. It’s not an issue with the docker package but with dreamfactory itself. There’s an issue saving CORS configs when the system db is SQLite. Working on a fix for that, but a workaround is to use MySQL for the system db. [https://wiki.dreamfactory.com/DreamFactory/Installation#Switch\_System\_Database](https://wiki.dreamfactory.com/DreamFactory/Installation#Switch_System_Database)
