I'm building an application with a database where I'd like to populate the DB with some data at first start up (so that the user has a few examples of how the application can be used)
To achieve this I'd like to detect if the application is started the first time and if that's the case add these initial rows to the database, and otherwise, skip this
What would you recommend to do to indicate that the application has been started before?
Some alternatives I've thought about:
- Using the application settings
- Having an empty file in the application directory which is removed as soon as the application has been started once
Are there other alternatives? What can you recommend and why?