Skip to content

Re-initializing SQLite DB doesn't delete old DB from device #6488

@bob-reus

Description

@bob-reus

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

We intend to use a read-only SQLite database to populate an offline-first knowledge base in our mobile app. During our tests we noted that when we want to update this file, the database:

  1. doesn't get updated if we keep the database name the same, or
  2. keeps the old database file on the user's device when we change the database name

As there's no way to tell how often we'll have to update the contents of this knowledge base, this will lead to a lot of wasted space on the user's device.

Expected Behavior

I expect the database file to be overwritten by the new database file, if we choose to re-initialize by renaming the database name.

Steps to Reproduce

  1. Activate SQLite integration
  2. Enter a name for the database and upload SQLite database
  3. Compile and open app
  4. Enter a different database name and upload a new file
  5. Compile and open app
    You will need to run in an emulator or have root access to check this

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4eksjf35N2seEC1aqNd+9anjwsQ2I6aI0709VxbAwjF5TwPex3eej+QHZVOMO/dFY3OlmI8WM0w+DIhYbDCfoHPiirR6px1al6YRbdRkCWbLrRPquSf39CMNNQf0+HzbSzgx54AM91SGQH6lymIOSAQh3tO4D2NlVBDv2ZBLrXjkKkGhzOXn0Jg1ZSfCvr

Visual documentation

Image

Note; the names are illustrative. Actual SQLite file is named differently.

Environment

- FlutterFlow version: 6.3.1 released September 9, 2025
- Platform: Web and Windows Desktop

Additional Information

I lost count of how many ways we have attempted to build something with our very basic requirements* without resorting to build all pages by hand: App state has a 100kb limit, and when the above issue popped up we initially wrote a custom SQLite implementation, which is blocked by a different issue. It shouldn't be this difficult.

* Requirements:

  • 20+ pages of similarly structured content
  • available offline
  • basic styling
  • images
  • searchable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions