Fix db.xml

Permalink Browser Info Environment
Hi!

concrete5 has the very handy "c5:compare-schema" CLI command that can be used to compare the actual database tables and the database tables as defined by the core and the packages.

When running this command with the theme_pixel package installed, here's the output:

$ ./concrete/bin/concrete5 c5:compare-schema
1: ALTER TABLE btWhaleImageSlider CHANGE fullscreen fullscreen TINYINT(1) DEFAULT '0', CHANGE scroller scroller TINYINT(1) DEFAULT '0', CHANGE navigation navigation TINYINT(1) DEFAULT '0', CHANGE pagination pagination TINYINT(1) DEFAULT '0', CHANGE loopSlider loopSlider TINYINT(1) DEFAULT '0'
2: ALTER TABLE btWhaleImageSliderEntries CHANGE captionDark captionDark TINYINT(1) DEFAULT '0', CHANGE overlayOpacity overlayOpacity DOUBLE PRECISION DEFAULT '0', CHANGE openLinkInNewWindow openLinkInNewWindow TINYINT(1) DEFAULT '0'


that's caused by wrong definitions in the blocks/whale_image_slider/db.xml file: boolean and float fields can't be marked as unsigned.

So, what about removing <unsigned/> from fields of types "boolean" and "float" ?

Type: Discussion
Status: Resolved
mlocati
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi Michele,
Thanks for the heads-up. I fixed that on my master copy and it will be available in next version.
Cheers,

concrete5 Environment Information

n/a

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.