support morm for Item struct #4

Closed
opened 2021-02-22 17:59:19 +01:00 by tomasz.sowa · 0 comments
Owner

Move Item struct to a new directory called 'models' and use morm to read/save.
The Item struct should be divided into two structs:

Item

  • id
  • parent_id
  • type (file, dir, symlink)
  • url
  • subject
  • template (html template)
  • sort_index
  • content_id

Content (or ItemContent?)

  • id
  • ref -> references (renamed)
  • user_id
  • modification_user_id
  • group_id
  • privileges
  • date_creation
  • date_modification
  • guest_name
  • link_to (used when type is symlink or a directory)
  • link_redirect
  • file_path
  • file_fs
  • file_type (now int, will be changed to file_content_type as string)
  • file_size
  • has_thumb -> file_has_thumb (renamed)
  • hash -> file_hash (renamed)
  • hash_type -> file_hash_type (renamed)
  • language_id (a new field)
  • content -> content_raw (renamed)
  • content_type -> content_raw_type (renamed)
  • content_parsed
  • content_parsed_type
  • meta
  • ameta -> meta_admin (renamed)
  • modify_index (removed)
Move Item struct to a new directory called 'models' and use morm to read/save. The Item struct should be divided into two structs: ## Item - id - parent_id - type (file, dir, symlink) - url - subject - template (html template) - sort_index - content_id ## Content (or ItemContent?) - id - ref -> references (renamed) - user_id - modification_user_id - group_id - privileges - date_creation - date_modification - guest_name - link_to (used when type is symlink or a directory) - link_redirect - file_path - file_fs - file_type (now int, will be changed to file_content_type as string) - file_size - has_thumb -> file_has_thumb (renamed) - hash -> file_hash (renamed) - hash_type -> file_hash_type (renamed) - language_id (a new field) - content -> content_raw (renamed) - content_type -> content_raw_type (renamed) - content_parsed - content_parsed_type - meta - ameta -> meta_admin (renamed) - modify_index (removed)
tomasz.sowa added this to the 0.7.3 morm milestone 2021-02-22 17:59:19 +01:00
tomasz.sowa added the
enhancement
label 2021-02-22 17:59:19 +01:00
tomasz.sowa self-assigned this 2021-02-22 17:59:19 +01:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tomasz.sowa/winix#4
No description provided.