Commit 30e19bfc authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix for postgres blogpost attachment upgrade

parent 73937eb8
......@@ -908,8 +908,8 @@ function xmldb_core_upgrade($oldversion=0) {
if (is_postgres()) {
// Ensure all of the indexes and constraints are renamed
execute_sql("
ALTER TABLE {artefact_attachment} RENAME {blogpost} TO {artefact};
ALTER TABLE {artefact_attachment} RENAME {file} TO {attachment};
ALTER TABLE {artefact_attachment} RENAME blogpost TO artefact;
ALTER TABLE {artefact_attachment} RENAME file TO attachment;
ALTER INDEX {arteblogblogfile_blofil_pk} RENAME TO {arteatta_artatt_pk};
ALTER INDEX {arteblogblogfile_blo_ix} RENAME TO {arteatta_art_ix};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment