> It looks like you have a too long value for something, but don't
> actually see too many varchar(48) columns in my 5.x database, so I'm not
> sure where this is falling over. Hopefully someone with more experience
> with the db migrations will help.

Thanks for the feedback, Andrea.  Since the varying number is small, I decided 
to grep bitstreamformatregistry in our DSpace 4.3 production SQL and turned up 
this:

bitstream_format_id | mimetype | short_description | description | 
support_level | internal 
---------------------+------------+-------------------+----------------------------------------------------------------------+---------------+----------
11 | image/jpeg | JPEG | Joint Photographic Experts Group/JPEG File Interchange 
Format (JFIF) | 1 | f
(1 row)

I'm not sure how that inconsistency persisted with updates (1.8.2 to 3.3 to 
4.3) given the active constraint, but it did.  What's more interesting is that 
the 5.x migration script doesn't automatically catch the difference in table 
limits.

Of note, here's a SQL dump from our 4.3 install:

CREATE TABLE bitstreamformatregistry (
bitstream_format_id integer NOT NULL,
mimetype character varying(48),
short_description character varying(128),
description text,
support_level integer,
internal boolean
);

And here's one from 5.3:

CREATE TABLE bitstreamformatregistry (
bitstream_format_id integer NOT NULL,
mimetype character varying(256),
short_description character varying(128),
description text,
support_level integer,
internal boolean
);

That's a sizable difference.  Isn't there a way for the migration script to do 
a sanity check on the existing table structure before attempting changes or 
manipulating populated data?  I absolutely know we didn't make this change 
ourselves.


-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to