Attention une mise à jour du service Gitlab va être effectuée le mardi 18 janvier (et non lundi 17 comme annoncé précédemment) entre 18h00 et 18h30. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

Commit af119810 authored by Marc Duez's avatar Marc Duez
Browse files

server : autodelete file if the associated database row is removed

parent edea84d3
......@@ -104,7 +104,7 @@ db.define_table('sequence_file',
Field('sequencer','text'),
Field('producer','text'),
Field('size_file','integer'),
Field('data_file', 'upload', length=1000000000000))
Field('data_file', 'upload', length=1000000000000, autodelete=True))
......@@ -128,21 +128,21 @@ db.define_table('data_file',
Field('config_id', 'reference config'),
Field('run_date','date'),
Field('scheduler_task_id', 'integer'),
Field('data_file', 'upload', length=1000000000000))
Field('data_file', 'upload', length=1000000000000, autodelete=True))
db.define_table('fused_file',
Field('patient_id', 'reference patient'),
Field('config_id', 'reference config'),
Field('fuse_date','date'),
Field('status', 'string'),
Field('fused_file', 'upload', length=1000000000000))
Field('fused_file', 'upload', length=1000000000000, autodelete=True))
db.define_table('analysis_file',
Field('patient_id', 'reference patient'),
Field('config_id', 'reference config'),
Field('analyze_date','date'),
Field('status', 'string'),
Field('analysis_file', 'upload', length=1000000000000))
Field('analysis_file', 'upload', length=1000000000000, autodelete=True))
if db(db.auth_user.id > 0).count() == 0:
......
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