diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-06 18:57:17 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-06 18:57:17 -0800 |
commit | b29fe50f7031a536dd3b9f788444f3cf8d43a531 (patch) | |
tree | ed5331c22e91a2edf2dffcf0a2c5b07462d45398 /doc | |
parent | 85ae07e7c8d27aa9339fc863513e9e8610cee100 (diff) | |
download | volse-hubzilla-b29fe50f7031a536dd3b9f788444f3cf8d43a531.tar.gz volse-hubzilla-b29fe50f7031a536dd3b9f788444f3cf8d43a531.tar.bz2 volse-hubzilla-b29fe50f7031a536dd3b9f788444f3cf8d43a531.zip |
update db doco for attach structure to match hubzilla schema
Diffstat (limited to 'doc')
-rw-r--r-- | doc/database/db_attach.bb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/doc/database/db_attach.bb b/doc/database/db_attach.bb index 4514c87f8..7d2befb47 100644 --- a/doc/database/db_attach.bb +++ b/doc/database/db_attach.bb @@ -21,7 +21,15 @@ [/td][/tr] [tr][td]folder[/td][td]attach.hash of parent folder[/td][td]char(64)[/td][td]NO[/td][td]MUL[/td][td][/td][td] [/td][/tr] -[tr][td]flags[/td][td]see notes[/td][td]int(10) unsigned[/td][td]NO[/td][td]MUL[/td][td]0[/td][td] +[tr][td]flags[/td][td]no longer used[/td][td]int(10) unsigned[/td][td]NO[/td][td]MUL[/td][td]0[/td][td] +[/td][/tr] +[tr][td]is_dir[/td][td]0 (file) or 1 to indicate a directory[/td][td]tinyint[/td][td]NO[/td][td]MUL[/td][td]0[/td][td] +[/td][/tr] +[tr][td]is_photo[/td][td]if 1, a photo is linked to this resource[/td][td]tinyint[/td][td]NO[/td][td]MUL[/td][td]0[/td][td] +[/td][/tr] +[tr][td]os_storage[/td][td]if 0, data contains content; if 1 data contains path to content (always 1 in hubzilla)[/td][td]tinyint[/td][td]NO[/td][td]MUL[/td][td]0[/td][td] +[/td][/tr] +[tr][td]display_path[/td][td]under construction, store the human readable path[/td][td]mediumtext[/td][td]NO[/td][td]MUL[/td][td]0[/td][td] [/td][/tr] [tr][td]data[/td][td]file data or pathname to stored data if ATTACH_FLAG_OS[/td][td]longblob[/td][td]NO[/td][td][/td][td]NULL[/td][td] [/td][/tr] @@ -39,12 +47,6 @@ [/td][/tr] [/table] - -Bitmasks - -define ( 'ATTACH_FLAG_DIR', 0x0001); This is a directory -define ( 'ATTACH_FLAG_OS', 0x0002); Data content is link to OS file containing data, if unset the data filed contains the file data - permissions are xchan_hash or group_hash surrounded by angle chars. e.g. '<abc123><xyz789>' Return to [zrl=[baseurl]/help/database]database documentation[/zrl]
\ No newline at end of file |