Current section

Files

Jump to
ash_archival documentation topics upgrading-to-1.0.md
Raw

documentation/topics/upgrading-to-1.0.md

<!--
SPDX-FileCopyrightText: 2022 ash_archival contributors <https://github.com/ash-project/ash_archival/graphs.contributors>
SPDX-License-Identifier: MIT
-->
## Upgrading to 1.0
## Implementation changed from base_filter to preparations
Before 1.0 of this library, a `base_filter` was added to the resource to hide archived items. To retain the old behavior (which includes database structure),
add the `base_filter` and `base_filter_sql` yourself. Additionally, set `base_filter? true` in the `archival` block to ensure that we don't apply the filter twice.
See the [getting started guide](documentation/tutorials/get-started-with-ash-archival.md) for more on base filters.