Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing DB column after update #154

Open
pyrographics opened this issue Mar 12, 2014 · 6 comments
Open

Missing DB column after update #154

pyrographics opened this issue Mar 12, 2014 · 6 comments

Comments

@pyrographics
Copy link

After updating to 1.1.10 we now get an SQL error due to missing column 'content' prohibiting events from being saved. I verified the column is not in the database. It appears the updater didn't add the column. I added the column with the type of text to get rid of the error but it doesn't add content into it when updating.

[2014-03-12 15:57:53](ERROR @ /assets/components/mxcalendars/connector.php) Error 42S22 executing statement:
INSERT INTO modx_mxcalendars_events (title, description, content, categoryid, link, linkrel, linktarget, location_name, location_address, map, allday, startdate, enddate, repeating, repeattype, repeaton, repeatfrequency, source, feeds_id, feeds_uid, context, calendar_id, form_chunk, createdon, createdby, editedby, active) VALUES ('Test Event', 'test', '', '4', '', '', '', '', '', 0, 1, 1394629200, 1394661600, 0, 0, '', 0, 'local', 0, '', '', 1, '', 1394657873, 1, 0, 1)
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'content' in 'field list'
)

@Lefthandmedia
Copy link

I had the same problem, the content column was missing, i also added it manualy and it saves just fine.

@crimsonpixel
Copy link

Stumbled across this problem today too - added content column and now all working fine. Needs a fix though really - I'm sure Charles is on it ;)

@Lefthandmedia
Copy link

I realy hope so because MxCalendar is quite unstable now.

Met vriendelijke groet,

Ralph de Groot
Lefthandmedia

On 30 jun. 2014, at 19:32, crimsonpixel [email protected] wrote:

Stumbled across this problem today too - added content column and now all working fine. Needs a fix though really - I'm sure Charles is on it ;)


Reply to this email directly or view it on GitHub.

@apcherry
Copy link

I had the same problem with 1.1.10 - thankfully fixed with adding the 'content' field to the db table.

However it then started complaining that the 'allday' column was missing, So I added that one as well, as type boolean.

With the extra columns added I can now save events!

@CartierBailey
Copy link

What type should the content field be?

@MacConin
Copy link

the used sql statements would be fine ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants