# Migrations

> **Info:**
Migrations run from **Editor > Migrations** only. The old plugin's files have to be in the server's plugins folder. It does not have to be running. Every source is built from the plugin's file format and has not been tested on a live install yet.

## Sources

| Plugin | Reads |
| ------ | ----- |
| DecentHolograms | holograms/\*.yml and displays/\*.yml |
| FancyHolograms | holograms.yml (version 2) |
| FancyHolograms v3 | data/holograms/\*.json |
| HolographicDisplays | database.yml |
| CMI | Saves/Holograms.yml |
| GHolo | data/data.db (the SQLite database; a MySQL database is not read) |

<figure><img src="../.gitbook/assets/migrations/decentholograms.png" alt="" width="563"><figcaption><p>Migrations (Migrate from DecentHolograms)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/migrations/fancyholograms.png" alt="" width="563"><figcaption><p>Migrations (Migrate from FancyHolograms)</p></figcaption></figure>

Each source shows whether its files were found on this server. Importing asks for a confirmation, then reports how many holograms were imported, skipped and failed, with the reasons.

## What Is Imported

| | DecentHolograms | FancyHolograms | HolographicDisplays | CMI | GHolo |
| --- | --- | --- | --- | --- | --- |
| Name, location | Yes | Yes | Yes | Yes | Yes |
| Pages | Every page | One page | One page | Every page | One page |
| Text lines | Yes | Yes | Yes | Yes | Yes |
| Item lines | Yes | Yes | Yes | Yes | Yes |
| Block lines (as Item lines with Show as Block) | Blocks worn as heads, at their worn size, and display blocks | Yes | No | No | Yes |
| Head lines | Player and texture heads | No | No | Yes | No |
| Scale | Displays | Yes | No | Yes | Yes |
| View distance, update interval | Yes | Yes | No | Yes | View distance |
| View permission (as a view condition) | Yes | Yes | No | No | Yes |
| Billboard, background, shadow, see through, alignment, light | Displays | Yes | No | Shadow, alignment | Yes |
| Click actions | Left, right and shift clicks: messages, commands, sounds, server switches, page turns, teleports and permission checks | No | No | Hologram commands and page turns | No |

FancyHolograms v3 imports the same as FancyHolograms, plus shadow and glow on item holograms. Its items need Paper.

The hologram's id comes from its old name, cut to the [id rules](../plugin-information/commands.md#hologram-ids). Hex colors and `{player}` are turned into this plugin's format, and the HolographicDisplays placeholders `{player}`, `{displayName}`, `{online}`, `{max_players}`, `{world: x}` and `{papi: x}` become PlaceholderAPI placeholders.

## What Is Left Out

The report lists each of these with a count:

* A hologram whose id already exists here is left alone, so running a migration twice is safe.
* Image lines, the item data of item lines, and actions with no match here.
* CMI's automatic page button holograms, and the click and hover parts of CMI text.
* Other placeholders and animations are kept as typed.
* A FancyHolograms hologram linked to an NPC keeps its [NPC link](../main-features/holograms/edit-hologram.md#npc-link). It follows the NPC once that NPC is imported into PhoenixNPCs.

A hologram in a world that is not loaded is still imported, and shows once the world is loaded and the plugin reloaded.

Source: https://www.phoenixplugins.com/docs/phoenix-holograms/features/migrations