user1448031
user1448031

Reputation: 2166

Concrete5: How to refresh a package?

I am working on a custom package that only has dashboard-related application. In other words, there are no blocks. If I update the table in the db.xml, how do I refresh the package so that the table structure is synced in the database? I can't see a Refresh button for package unlike in Block Types.

Upvotes: 2

Views: 391

Answers (2)

Daniel Gasser
Daniel Gasser

Reputation: 5133

concrete5 5.7.x

While developing, you may set the DB-entities to be generated on the fly:

Set the Doctrine Development Mode to ON by going to the following Dashboard page:

Dashboard -> System & Settings -> Environment -> Database Entities.

Don't forget to set it back to OFF when in production mode.

concrete5 5.6.x See @Nicolai Krüger's answer.

Upvotes: 1

Nicolai Krüger
Nicolai Krüger

Reputation: 431

Just update the $pkgVersion in the packages controller.php file. Then and go to

Dashboard -> Extend concrete5 -> Add Functionality

from there you should now be able to update the package.

The same approach works for Concrete 5.6, but the menu is a bit different.

In both versions, you would have to go to the same page, where you installed the packaged the first time

Upvotes: 5

Related Questions