|
@@ -545,7 +545,27 @@ class ContentRevisionRO(DeclarativeBase):
|
545
|
545
|
server_default='',
|
546
|
546
|
)
|
547
|
547
|
file_mimetype = Column(Unicode(255), unique=False, nullable=False, default='')
|
|
548
|
+ # TODO - A.P - 2017-07-03 - future removal planned
|
|
549
|
+ # file_content is to be replaced by depot_file, for now both coexist as
|
|
550
|
+ # this:
|
|
551
|
+ # - file_content data is still setted
|
|
552
|
+ # - newly created revision also gets depot_file data setted
|
|
553
|
+ # - access to the file of a revision from depot_file exclusively
|
|
554
|
+ # Here is the tasks workflow of the DB to OnDisk Switch :
|
|
555
|
+ # - Add depot_file "prototype style"
|
|
556
|
+ # https://github.com/tracim/tracim/issues/233 - DONE
|
|
557
|
+ # - Integrate preview generator feature "prototype style"
|
|
558
|
+ # https://github.com/tracim/tracim/issues/232 - DONE
|
|
559
|
+ # - Write migrations
|
|
560
|
+ # https://github.com/tracim/tracim/issues/245
|
|
561
|
+ # https://github.com/tracim/tracim/issues/246
|
|
562
|
+ # - Stabilize preview generator integration
|
|
563
|
+ # includes dropping DB file content
|
|
564
|
+ # https://github.com/tracim/tracim/issues/249
|
548
|
565
|
file_content = deferred(Column(LargeBinary(), unique=False, nullable=True))
|
|
566
|
+ # INFO - A.P - 2017-07-03 - Depot Doc
|
|
567
|
+ # http://depot.readthedocs.io/en/latest/#attaching-files-to-models
|
|
568
|
+ # http://depot.readthedocs.io/en/latest/api.html#module-depot.fields
|
549
|
569
|
depot_file = Column(UploadedFileField, unique=False, nullable=True)
|
550
|
570
|
properties = Column('properties', Text(), unique=False, nullable=False, default='')
|
551
|
571
|
|