# Is there a way to force database schema update?

**URL:** <https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991>\
**Category:** Product Support\
**Created:** [June 22, 2015, 8:24am UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991 "2015-06-22T08:24:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuum](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@tuum](https://forum.mautic.org/u/tuum)\
**Post date:** [June 22, 2015, 8:24am UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991/1 "2015-06-22T08:24:28Z")

</div>

Updating to v1.1.2, my site hangs on “Processing Database Updates”, and shows an “undefined” error. Refreshing browser seems to say update was successful, however when I try to edit an existing landing page I get “Uh oh! I think I broke it” message.  
  
Log shows the following error:  
  
Column not found: 1054 Unknown column ‘m0\_.form\_type’ in ‘field list’  
  
  
  
So I was just wondering if there is an easy way to repair the database schema? I’m sure I could fix manually via phpMyAdmin, but was hoping there is an easy way ![:)]( ":)")

---

<div class="post-metadata">

**Author:** ![tuum](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@tuum](https://forum.mautic.org/u/tuum)\
**Post date:** [June 22, 2015, 8:24am UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991/2 "2015-06-22T08:24:28Z")

</div>

Updating to v1.1.2, my site hangs on “Processing Database Updates”, and shows an “undefined” error. Refreshing browser seems to say update was successful, however when I try to edit an existing landing page I get “Uh oh! I think I broke it” message.  
Log shows the following error:  
Column not found: 1054 Unknown column ‘m0\_.form\_type’ in ‘field list’

So I was just wondering if there is an easy way to repair the database schema? I’m sure I could fix manually via phpMyAdmin, but was hoping there is an easy way 🙂

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [June 22, 2015, 2:30pm UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991/3 "2015-06-22T14:30:12Z")

</div>

There’s a few commands available in the CLI which may help:

Runs the updater:  
php app/console mautic:update:apply

Updates the database schema:  
php app/console doctrine:schema:update --force

---

<div class="post-metadata">

**Author:** ![tuum](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@tuum](https://forum.mautic.org/u/tuum)\
**Post date:** [June 23, 2015, 12:24am UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991/4 "2015-06-23T00:24:00Z")

</div>

Hi Chad,  
Thanks for the suggestion. I’m getting the following errors when I try to run these commands:

Fatal error: Class ‘SymfonyBundleTwigBundleTwigBundle’ not found in /public\_html/app/AppKernel.php on line 184

Fatal error: Class ‘SymfonyBundleWebProfilerBundleWebProfilerBundle’ not found in /public\_html/app/AppKernel.php on line 185

[InvalidArgumentException]  
The file “/public\_html/app/config/config\_dev.php” does not exist

[SymfonyComponentDependencyInjectionExceptionServiceNotFoundException]  
The service “templating” has a dependency on a non-existent service “templating.engine.twig”.

Any suggestion?

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [June 23, 2015, 1:15pm UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991/5 "2015-06-23T13:15:03Z")

</div>

Hi Tuum

Did you install mautic using the downloaded installer or are you running from the source code via a .git install?

---

<div class="post-metadata">

**Author:** ![tuum](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@tuum](https://forum.mautic.org/u/tuum)\
**Post date:** [June 24, 2015, 11:01am UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991/6 "2015-06-24T11:01:24Z")

</div>

Hi Chad,  
It’s the downloadable installer version, not the .git one. Are there some files in git I can copy to my site to make the cli commands work?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/is-there-a-way-to-force-database-schema-update/1991/7 "2020-02-02T22:59:24Z")

</div>


