Actions100
- Project Actions
- Project Accept Project Invite
- Project Create Project Invite
- Project List Invites For Project
- Project Create Project
- Project Decline Project Invite
- Project Delete Project Avatar
- Project Request Project Avatar Upload
- Project Delete Project Invite
- Project Get Project Invite
- Project Delete Project Membership
- Project Get Project Membership
- Project Update Project Membership
- Project Delete Project
- Project Get Project
- Project Delete Server Avatar
- Project Request Server Avatar Upload
- Project Get Project Token Invite
- Project Get Self Membership For Project
- Project Get Server
- Project List Memberships For Project
- Project List Project Invites
- Project List Project Memberships
- Project List Projects
- Project List Servers
- Project Resend Project Invite Mail
- Project Update Project Description
- Project Update Server Description
- Storagespace Get Project Statistics
- Storagespace Get Server Statistics
- Storagespace Replace Project Notification Threshold
- Storagespace Replace Server Notification Threshold
- Backup Actions
- Backup Create Project Backup Export
- Backup Delete Project Backup Export
- Backup Create Project Backup Schedule
- Backup List Project Backup Schedules
- Backup Create Project Backup
- Backup List Project Backups
- Backup Delete Project Backup Schedule
- Backup Get Project Backup Schedule
- Backup Update Project Backup Schedule
- Backup Delete Project Backup
- Backup Get Project Backup
- Backup Update Project Backup Description
- SSH SFTP User Actions
- Cronjob Actions
- App Actions
- App Execute Action
- App Get App
- App Get Appinstallation
- App Patch Appinstallation
- App Uninstall Appinstallation
- App Get Appversion
- App Get Installed Systemsoftware For Appinstallation
- App Get Missing Dependencies For Appinstallation
- App Get Systemsoftware
- App Get Systemsoftwareversion
- App Link Database
- App List Appinstallations For User
- App List Appinstallations
- App Request Appinstallation
- App List Apps
- App List Appversions
- App List Systemsoftwares
- App List Systemsoftwareversions
- App List Update Candidates For Appversion
- App Replace Database
- App Request Appinstallation Copy
- App Retrieve Status
- App Unlink Database
- App Set Database Users
- Project File System Actions
- Contract Actions
Overview
This node operation, App Replace Database, is designed to replace an existing database associated with a specific app installation with a new database. It allows users to specify which old database should be replaced and what new database will take its place, along with the user IDs that should be associated with the new database.
Common scenarios for this node include:
- Migrating an app's data from one database to another without changing the app installation.
- Updating database references in an app after a database upgrade or restructuring.
- Reassigning database users when switching databases for an app.
For example, if you have an app installed that currently uses an outdated database, you can use this operation to seamlessly switch it to a new database while specifying which users should have access to the new database.
Properties
Name | Meaning |
---|---|
App Installation Id | The ID of the app installation for which the database replacement should occur. |
Old Database Id | The ID of the database that you want to replace (the current/old database). |
New Database Id | The ID of the new database that will replace the old one. |
Database User Ids | A JSON object containing the IDs of the users who should be associated with the new database. |
Output
The node outputs JSON data representing the result of the database replacement operation. This typically includes confirmation details such as success status, updated app installation information, or error messages if the operation failed.
No binary data output is indicated by the source code or properties.
Dependencies
- Requires an API key credential for authentication with the mittwald mStudio API.
- The node communicates with the mittwald API endpoint at
https://api.mittwald.de
. - Proper configuration of the API key credential within n8n is necessary for successful requests.
Troubleshooting
- Missing or invalid App Installation Id: Ensure the provided app installation ID exists and is correctly formatted.
- Incorrect Old or New Database Ids: Verify that both database IDs are valid and accessible.
- Malformed Database User Ids JSON: The
databaseUserIds
property expects a valid JSON object; invalid JSON will cause errors. - API Authentication Errors: Confirm that the API key credential is set up correctly and has sufficient permissions.
- Network or API Endpoint Issues: Check connectivity to the mittwald API and ensure the base URL is reachable.
If errors occur, reviewing the exact error message returned by the API can help pinpoint issues such as permission denials, invalid IDs, or malformed requests.
Links and References
- mittwald mStudio API Documentation (official API docs, if publicly available)
- n8n documentation on creating custom nodes for further customization guidance