# Bug OP-13363 - Migration from before removal of WikiContent fails

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-13363

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.0.5 |
| Observed in versions | 13.0.0 |
| Sprint | 13.0.5 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

### Steps to reproduce

1.  Have an OpenProject 12.0 dump
2.  Try to update to 13.0

### What is the buggy behavior?

*   the migration fails with the following error

```text
uninitialized constant WikiContent
/home/mk/dev/opf/openproject/core-3/db/migrate/20220818074150_fix_invalid_journals.rb:50:in `block in get_broken_journals'

also, even if we work around that:

PG::UndefinedTable: ERROR:  relation "storages_file_links_journals" does not exist
LINE 9:  WHERE a.attrelid = '"storages_file_links_journals"'::regcla...
```

### What is the expected behavior?

*   the migration should work

**OpenProject version**

which ever version refactored wiki contents
