File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,6 +161,13 @@ public function hookUpgrade($args)
161161 $ newVersion = $ args ['new_version ' ];
162162 $ db = $ this ->_db ;
163163
164+ // Do this first because MySQL will complain about any ALTERs to a table with an
165+ // invalid default if we don't fix it first
166+ if (version_compare ($ oldVersion , '2.0.3 ' , '<= ' )) {
167+ $ sql = "ALTER TABLE ` {$ db ->prefix }csv_import_imports` MODIFY `added` timestamp NOT NULL default '2000-01-01 00:00:00' " ;
168+ $ db ->query ($ sql );
169+ }
170+
164171 if (version_compare ($ oldVersion , '2.0-dev ' , '<= ' )) {
165172 $ sql = "UPDATE ` {$ db ->prefix }csv_import_imports` SET `status` = ? WHERE `status` = ? " ;
166173 $ db ->query ($ sql , array ('other_error ' , 'error ' ));
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name="CSV Import"
33author =" Roy Rosenzweig Center for History and New Media"
44description =" Imports items, tags, and files from CSV files."
55link =" http://omeka.org/codex/Plugins/CSV_Import_2.0"
6- version =" 2.0.3 "
6+ version =" 2.0.4 "
77support_link =" http://omeka.org/forums/forum/plugins"
88license =" GPL"
99omeka_minimum_version =" 2.0"
You can’t perform that action at this time.
0 commit comments