Import a workspace schema from a JSON export

Review a Mainbase schema export, apply its proposed tables and fields, and check any records included in the package.

Use a Mainbase schema export to bring table definitions into a workspace. If the source used Export Schema + Data, the file can also contain the records included in that export. You need permission to manage the database schema and access to import and export on the destination workspace’s plan.

Choose the file and destination

  1. Start with the JSON file from Export Schema or Export Schema + Data. A schema package can be up to 2 MiB. If the package with records exceeds that limit, use a schema-only package within the limit and import records into each table separately.
  2. Switch to the destination workspace and confirm its name. In Settings → Database, open More options → Import and add the JSON file.
  3. Wait for Mainbase to prepare the database import for review. The proposal opens after the file is read.

Review and verify the import

  1. Read the proposed changes before applying them. Check the tables, fields, and relationships, including how the proposal handles anything that already exists in the destination. Cancel the review if the proposed changes differ from what you intended.
  2. Apply the proposal and wait for the result. Open the affected tables and check the field names and a relationship between tables. If the file included records, compare record counts and a few sample values with the source.
  3. If the result shows an error, read the import details and check what already exists in the destination before trying again.

Import a JSON file structured as rows into a new table

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?