All articles

Lovable

Lovable drafts get their own database. Accepting one still touches live

As of 16 November 2026, Lovable drafts on the built-in backend get a separate database with example data. The risk moves to the moment of acceptance.

By Håvard Liltved Dalen4 min readUpdated

Abstract paper illustration of three stacked layers
On this page

Key takeaways

  • Since 16 November 2026, a Lovable draft on the built-in backend gets its own database, filled with example data.
  • Accepting a draft changes the live database immediately, before the new pages are published.
  • Lovable does not back up the database when a draft is accepted, so its documentation recommends exporting the database first.

On 16 November 2026, Lovable changed how drafts handle data. A draft is a separate copy of an app where a builder can try changes. According to the changelog entry, a draft now has its own backend with example data, on projects that use Lovable's built-in backend.

The backend is the part of an app that stores data and runs code on a server. A builder can add something like a new form field, test it, and leave the live app untouched until the draft is accepted. At that point Lovable applies the change to the live database before publishing and leaves the test data behind.

Why does a separate test database matter to Lovable builders?

It matters because builders on r/lovable describe apps that broke after a change. One thread is titled "Lovable Cloud has broken my app", and its summary mentions losing direct control over database changes. Another, "Stuff that worked last night broken today?", describes changes that seemed to disappear.

These are two public posts, not measurements. They show the worry the new feature answers.

What does a Lovable draft keep separate from the live app?

A draft with its own backend keeps data separate. It does not keep outside services separate. The drafts documentation says such a draft gets a copy of the live app's database structure, meaning its tables and columns.

Rows that are added, changed or deleted stay in the draft. File storage starts with the same settings but no files.

User accounts are separate too. The draft starts with two demo accounts, or with the test accounts listed in an example data file at db/seed.sql.

Secret keys and connected services still use their live values. The documentation warns that calls from a draft to outside services are real. It adds that with a builder's own Stripe account and a live key, a test payment is real too. Stripe is a payment service.

The separation covers the database and file storage, not everything the app touches outside Lovable.

The documentation also says these drafts are "rolling out gradually," so some drafts may still share the live backend. Projects that use their own Supabase project always share it. Supabase is a database service.

The only sign is a banner above the preview saying example data is in use. If the banner is missing, every change to data is made in the live app.

When does a tested database change reach the live app?

The change reaches the live app when the draft is accepted, not when the app is published. The drafts documentation says that once acceptance finishes, three things take effect in the live app immediately:

  • changes to the database structure
  • storage settings
  • backend functions, the code that runs on the server

Pages and screens only join the list of unpublished changes. For a while, the old published pages run against the new database.

Lovable says most additions work fine during that time. It also warns that renaming or removing something the old version depends on can break it. Its advice is to publish right after accepting. The draft's protection does not cover this step.

Before applying anything, Lovable checks that the draft's changes still fit the live database's current structure. If any change fails, the documentation says none are applied and the draft's code is not added. All or nothing is the safer choice.

The documentation also describes a 20-minute limit on acceptance. Drafts are accepted one at a time. A project's queue has room for 10 drafts, including the one being accepted.

Can a Lovable draft change be undone after accepting?

Code can be restored, but the database is harder. The documentation states that Lovable does not take a database backup when a draft is accepted. Restoring from version history brings back code and backend functions, but not the database.

Lovable recommends two steps:

  • Export the database before accepting.
  • Restore a daily backup after accepting if a database change has to be undone. This also removes any data added since that backup.

Lovable is aimed at people who are not specialists. These are manual steps, and they fall at the moment the feature makes a change feel safe.

Can Lovable example data show the errors real data would cause?

Only partly, and only with extra work. By default Lovable writes only a few example rows for each table. A few tidy rows rarely contain the empty fields, duplicates or odd old values that make changes fail on real tables.

Builders can go further in two ways:

  • Write their own test data in db/seed.sql. The documentation notes the file fails to apply if it is larger than 2 MB.
  • Ask Lovable to copy selected live rows into the draft. Lovable asks before copying personal details and never copies user accounts.

The second option is the more realistic test. The builder has to choose the right tables in advance.

One question is left open. The drafts documentation describes the check before acceptance as structure fitting structure. It does not say whether a new rule for a column is tested against the rows already in the live database.

A rule that passes against three example bookings could still fail against real data. The documentation does not describe what a builder sees in that case.

Do Lovable drafts cost extra credits?

No. According to the documentation, messages in a draft cost the same as in the main version. Creating, updating, accepting and deleting a draft use no credits.

The feature is a real improvement for the most common case. That case is adding something, like a new column or table, and testing it before users see it. The riskier cases still depend on the builder. These are renames, new rules on existing data, and anything that touches live payment keys.

What can a Lovable builder do before accepting a draft?

  • Check for the banner above the preview that says example data is in use. Without it, the draft shares the live backend.
  • Export the database before accepting. Lovable does not take a backup at that moment.
  • Publish right after accepting, as Lovable advises, so the old pages do not run against the new database for long.
  • For a risky change, test with realistic data: write it in db/seed.sql or ask Lovable to copy selected live rows.

Vendor changes covered through 16 November 2026. Last reviewed 18 November 2026.

Sources

All articles