From 2be79192f7dd286fc7a2c6c3bd248814ff6f0cbe Mon Sep 17 00:00:00 2001
From: Maximilian Giller <m.giller@tu-bs.de>
Date: Fri, 11 Feb 2022 01:31:02 +0100
Subject: [PATCH] Added database instructions

---
 README.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/README.md b/README.md
index 1fe83f3..16ad05c 100644
--- a/README.md
+++ b/README.md
@@ -16,3 +16,10 @@ Provides a plugin for the Wordpress CMS to display data in a 3-dimensional graph
 This project uses prettier and eslint. Make sure to configure your IDE to use them.
 
 To run the project run ``npm run watch``. This starts a parcel instance which automatically builds the project and updates the webserver via HMR. 
+
+## Switching to the database version
+
+To make sure that Wordpress created all necessary tables, please **deactivate** and then **activate** this plugin again.
+
+To move all the old spaces to the new storage, on the admin panel **navigate to Knowledge Space > Editor**. There you **open the settings** by clicking on the cog on the right side of the toolbar. Scroll down to find the "**Import Space**" section, which you will use to import old spaces. You can find the old spaces in the plugin folder under **datasets > spaces**. For the name for the import section use the filename *without* extension ("space.json" => "space") and for the 
+JSON simply use the content of the file, optionally minified with a tool like [https://jsonformatter.org/json-minify](https://jsonformatter.org/json-minify).
\ No newline at end of file
-- 
GitLab