introduce documents_revisions table, whitespace changes
This commit is contained in:
parent
fe76963f22
commit
3ada1fcc1d
@ -7,6 +7,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<name>*dbprefix*documents_session</name>
|
<name>*dbprefix*documents_session</name>
|
||||||
<declaration>
|
<declaration>
|
||||||
|
|
||||||
<field>
|
<field>
|
||||||
<name>es_id</name>
|
<name>es_id</name>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
@ -35,7 +36,7 @@
|
|||||||
<notnull>false</notnull>
|
<notnull>false</notnull>
|
||||||
<length>512</length>
|
<length>512</length>
|
||||||
<comments>Relative to storage e.g. /welcome.odt</comments>
|
<comments>Relative to storage e.g. /welcome.odt</comments>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
<name>owner</name>
|
<name>owner</name>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
@ -53,12 +54,14 @@
|
|||||||
<sorting>ascending</sorting>
|
<sorting>ascending</sorting>
|
||||||
</field>
|
</field>
|
||||||
</index>
|
</index>
|
||||||
|
|
||||||
</declaration>
|
</declaration>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<name>*dbprefix*documents_member</name>
|
<name>*dbprefix*documents_member</name>
|
||||||
<declaration>
|
<declaration>
|
||||||
|
|
||||||
<field>
|
<field>
|
||||||
<name>member_id</name>
|
<name>member_id</name>
|
||||||
<type>integer</type>
|
<type>integer</type>
|
||||||
@ -105,12 +108,14 @@
|
|||||||
<unsigned>true</unsigned>
|
<unsigned>true</unsigned>
|
||||||
<length>1</length>
|
<length>1</length>
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
</declaration>
|
</declaration>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<name>*dbprefix*documents_op</name>
|
<name>*dbprefix*documents_op</name>
|
||||||
<declaration>
|
<declaration>
|
||||||
|
|
||||||
<field>
|
<field>
|
||||||
<name>seq</name>
|
<name>seq</name>
|
||||||
<type>integer</type>
|
<type>integer</type>
|
||||||
@ -142,6 +147,7 @@
|
|||||||
<notnull>false</notnull>
|
<notnull>false</notnull>
|
||||||
<comments>json-string</comments>
|
<comments>json-string</comments>
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<index>
|
<index>
|
||||||
<name>seq_pKey</name>
|
<name>seq_pKey</name>
|
||||||
<primary>true</primary>
|
<primary>true</primary>
|
||||||
@ -162,11 +168,13 @@
|
|||||||
<sorting>ascending</sorting>
|
<sorting>ascending</sorting>
|
||||||
</field>
|
</field>
|
||||||
</index>
|
</index>
|
||||||
|
|
||||||
</declaration>
|
</declaration>
|
||||||
</table>
|
</table>
|
||||||
<table>
|
<table>
|
||||||
<name>*dbprefix*documents_invite</name>
|
<name>*dbprefix*documents_invite</name>
|
||||||
<declaration>
|
<declaration>
|
||||||
|
|
||||||
<field>
|
<field>
|
||||||
<name>es_id</name>
|
<name>es_id</name>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
@ -198,7 +206,62 @@
|
|||||||
|
|
||||||
</declaration>
|
</declaration>
|
||||||
</table>
|
</table>
|
||||||
|
<table>
|
||||||
|
<name>*dbprefix*documents_revisions</name>
|
||||||
|
<declaration>
|
||||||
|
|
||||||
|
<field>
|
||||||
|
<name>es_id</name>
|
||||||
|
<type>text</type>
|
||||||
|
<notnull>true</notnull>
|
||||||
|
<length>64</length>
|
||||||
|
<comments>Related editing session id</comments>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>seq_head</name>
|
||||||
|
<type>integer</type>
|
||||||
|
<notnull>true</notnull>
|
||||||
|
<unsigned>true</unsigned>
|
||||||
|
<length>4</length>
|
||||||
|
<comments>Sequence head number</comments>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>member_id</name>
|
||||||
|
<type>integer</type>
|
||||||
|
<notnull>true</notnull>
|
||||||
|
<unsigned>true</unsigned>
|
||||||
|
<length>4</length>
|
||||||
|
<comments>the member that saved the revision</comments>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>file_id</name>
|
||||||
|
<type>text</type>
|
||||||
|
<default></default>
|
||||||
|
<notnull>false</notnull>
|
||||||
|
<length>512</length>
|
||||||
|
<comments>Relative to storage e.g. /welcome.odt</comments>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>save_hash</name>
|
||||||
|
<type>text</type>
|
||||||
|
<notnull>true</notnull>
|
||||||
|
<comments>used to lookup revision in documents folder of member, eg '{hash}.odt'</comments>
|
||||||
|
</field>
|
||||||
|
|
||||||
|
<index>
|
||||||
|
<name>documents_rev_eis_idx</name>
|
||||||
|
<unique>true</unique>
|
||||||
|
<field>
|
||||||
|
<name>es_id</name>
|
||||||
|
<sorting>ascending</sorting>
|
||||||
|
</field>
|
||||||
|
<field>
|
||||||
|
<name>seq_head</name>
|
||||||
|
<sorting>ascending</sorting>
|
||||||
|
</field>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
</declaration>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</database>
|
||||||
|
|
||||||
</database>
|
|
||||||
|
@ -1 +1 @@
|
|||||||
0.5.3
|
0.5.4
|
@ -45,7 +45,7 @@ class Op {
|
|||||||
SELECT `seq`
|
SELECT `seq`
|
||||||
FROM `*PREFIX*documents_op`
|
FROM `*PREFIX*documents_op`
|
||||||
WHERE `es_id`=?
|
WHERE `es_id`=?
|
||||||
ORDER BY `seq` DESC
|
ORDER BY `seq` DESC
|
||||||
', 1);
|
', 1);
|
||||||
$result = $query->execute(array(
|
$result = $query->execute(array(
|
||||||
$esId
|
$esId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user