RED-9148 - Add paragraph page index to entity log #487
@ -4,4 +4,5 @@
|
|||||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">
|
||||||
<include file="/mongo/changelog/tenant/1-initial-database.changelog.xml"/>
|
<include file="/mongo/changelog/tenant/1-initial-database.changelog.xml"/>
|
||||||
<include file="/mongo/changelog/tenant/2-create-indices-for-entries.xml"/>
|
<include file="/mongo/changelog/tenant/2-create-indices-for-entries.xml"/>
|
||||||
|
<include file="/mongo/changelog/tenant/3-add-page-paragraph-idx.xml"/>
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
|
|||||||
@ -0,0 +1,25 @@
|
|||||||
|
<databaseChangeLog
|
||||||
|
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||||
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd
|
||||||
|
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||||
|
|
||||||
|
<changeSet id="3" author="aisvoran">
|
||||||
|
<ext:runCommand>
|
||||||
|
<ext:command>
|
||||||
|
{
|
||||||
|
update: "entity-log-entries",
|
||||||
|
updates: [
|
||||||
|
{
|
||||||
|
q: {},
|
||||||
|
u: { $set: { "paragraphPageIdx": -1 } },
|
||||||
|
multi: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</ext:command>
|
||||||
|
</ext:runCommand>
|
||||||
|
</changeSet>
|
||||||
|
|
||||||
|
</databaseChangeLog>
|
||||||
@ -62,6 +62,8 @@ public class EntityLogEntryDocument {
|
|||||||
|
|
||||||
boolean excluded;
|
boolean excluded;
|
||||||
|
|
||||||
|
int paragraphPageIdx;
|
||||||
|
|
||||||
List<Change> changes = new ArrayList<>();
|
List<Change> changes = new ArrayList<>();
|
||||||
|
|
||||||
List<ManualChange> manualChanges = new ArrayList<>();
|
List<ManualChange> manualChanges = new ArrayList<>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user