mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2161_coll-id-in-log-docs_MASTER
Optimize sql. Add the "coll_id_from" column in "log_docs" for the "collection" action. Hydrate a "coll_id" column in "log_view"
This commit is contained in:
@@ -2509,17 +2509,9 @@
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
<field>
|
||||
<name>coll_id</name>
|
||||
<type>int(11) unsigned</type>
|
||||
<null></null>
|
||||
<extra></extra>
|
||||
<default>0</default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
<field>
|
||||
<name>action</name>
|
||||
<type>enum('push','add','validate','edit','collection','status','print','substit','publish','download','mail','ftp','delete','collection_from','')</type>
|
||||
<type>enum('push','add','validate','edit','collection','status','print','substit','publish','download','mail','ftp','delete','')</type>
|
||||
<null></null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
@@ -2542,6 +2534,22 @@
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
<field>
|
||||
<name>coll_id_from</name>
|
||||
<type>int(11) unsigned</type>
|
||||
<null>YES</null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
<field>
|
||||
<name>coll_id</name>
|
||||
<type>int(11) unsigned</type>
|
||||
<null>YES</null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
</fields>
|
||||
<indexes>
|
||||
<index>
|
||||
@@ -2565,6 +2573,13 @@
|
||||
<field>record_id</field>
|
||||
</fields>
|
||||
</index>
|
||||
<index>
|
||||
<name>coll_id_from</name>
|
||||
<type>INDEX</type>
|
||||
<fields>
|
||||
<field>coll_id</field>
|
||||
</fields>
|
||||
</index>
|
||||
<index>
|
||||
<name>coll_id</name>
|
||||
<type>INDEX</type>
|
||||
@@ -2650,6 +2665,14 @@
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
<field>
|
||||
<name>coll_id</name>
|
||||
<type>int(11) unsigned</type>
|
||||
<null>YES</null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
</fields>
|
||||
<indexes>
|
||||
<index>
|
||||
@@ -2694,15 +2717,14 @@
|
||||
<field>site_id</field>
|
||||
</fields>
|
||||
</index>
|
||||
<index>
|
||||
<name>coll_id</name>
|
||||
<type>INDEX</type>
|
||||
<fields>
|
||||
<field>coll_id</field>
|
||||
</fields>
|
||||
</index>
|
||||
</indexes>
|
||||
<field>
|
||||
<name>coll_id</name>
|
||||
<type>int(11) unsigned</type>
|
||||
<null>YES</null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
<comment></comment>
|
||||
</field>
|
||||
<engine>InnoDB</engine>
|
||||
</table>
|
||||
|
||||
|
Reference in New Issue
Block a user