Every Kovos project with a database actually has two: a trial database, used by the preview and by the AI, and a live database, used by your online site. That's what lets you evolve an app that already has users without ever putting their data at risk.
Why it matters
When the AI adds a feature, it tests: it creates records, fills in forms, deletes rows. On the trial database, no problem. On your customers' data, it would be a disaster. With Kovos, the online site only receives what you publish.
Copying from one database to the other
In the Database tab, Preview data section:
- Copy the real data into the trial: to fine-tune a new version with real data.
- Send the trial data to the live site: to put online records prepared during development. This button is reserved for the project owner and asks you to type REMPLACER.
- Tick “Also copy files” to bring images, sounds and documents along.
- Your users' accounts follow, with their passwords.
Before each copy, Kovos saves a restore point of the database about to be replaced: you can go back. No existing file is deleted.
On first publication
When you publish your site for the first time, the box “Carry over the preview's data and files” is ticked: everything you entered during development goes with the site. Untick it to start with an empty site.
Working directly on the real data
For an internal tool, you may prefer the preview to show the real data. The project owner can choose “The site's real database” in the same section, once the site is published. Kovos keeps its safeguards:
- a restore point before every structure change;
- no change that deletes data without your confirmation, at publication;
- going back to an old version of the code never touches the data.
You can return to the separate trial database at any time.