Commit b888ef42 authored by marc duez's avatar marc duez

migrator.py : imported sample_set/sample will have web2py admin has creator id

original creator id does not necessary match an user on the new database
it is not possible anymore to have an invalid creator id (foreign key error)
parent d13ad025
......@@ -109,6 +109,7 @@ class Extractor():
sets = {}
sample_set_ids = []
for row in rows:
row.creator = 1
self.log.debug("populating : %d, sample_set: %d" % (row.id, row.sample_set_id))
sets[row.id] = get_dict_from_row(row)
sample_set_ids.append(row.sample_set_id)
......
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