Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/migrations/migrate20to24/migrate2.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

python $DIR/create_auth_group_and_update_res.py
# here add your script to migrate other resourcebase based models
# now contacts, tags, regions and permissions
Expand Down
2 changes: 1 addition & 1 deletion scripts/migrations/migrate20to24/migrate_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

try:
print 'Migrating document titled %s' % title_en
dst_cur.execute("insert into documents_document(resourcebase_ptr_id, title_en, abstract_en, purpose_en, constraints_other_en, supplemental_information_en, distribution_description_en, data_quality_statement_en, content_type_id, object_id, doc_file, extension, doc_type, doc_url) values (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", assignments)
dst_cur.execute("insert into documents_document(resourcebase_ptr_id, title_en, abstract_en, purpose_en, constraints_other_en, supplemental_information_en, distribution_description_en, data_quality_statement_en, object_id, content_type_id, doc_file, extension, doc_type, doc_url) values (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", assignments)
dst.commit()
except Exception as error:
print
Expand Down