Updating from unstable6 to unstable7 yields:

Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'type' cannot be null: INSERT INTO {file_type} (type, label, description) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => ) in file_type_save() (line 541 of /var/www/[site]/sites/all/modules/file_entity/file_entity.file_api.inc).

Comments

bensnyder’s picture

Originally I updated both file_entity and media at the same time. After reverting the backup, I:

  1. disabled media_browser_plus
  2. kept media-unstable6, but ran update.php with file_entity-unstable7 (completed, no errors)
  3. ran update.php w/ media-unstable7 (completed, no errors)

I didn't do any good testing here. In fact, I'm not sure why I got the initial PDOException. Could be a number of things. But the second time I tried, following the steps above... I got through without a hitch.

bensnyder’s picture

Status: Active » Closed (fixed)
bensnyder’s picture

jide’s picture

Status: Closed (fixed) » Active

I'm experiencing the same issue, and did the same procedure, but git the error on second update.php...

arthurf’s picture

I think this maybe related to the upgrade sequence. I saw this when I was doing testing on #1846518: Document file types are undefined after module update - could you try going from unstable6 -> dev and see if that fixes the issue for you?

jide’s picture

I simply deleted the media_types table, after having tried on a fresh install and seen that file_types table was empty anyway, but I'm not sure about what would be migrated otherwise.

I may give it a try following your advice to see where it goes.

Thanks !

jide’s picture

@arthurf: I updated my old media unstable3 to unstable6, and then to dev, and had no error. Youtubes mimetypes were not recognized though.

jide’s picture

...but updating to media_youtube dev solved the issue, hooray !

gmclelland’s picture

Status: Active » Closed (fixed)

Closing based on #8