I have an application that has a database (created and populated within the application). What I would like to do is to be able to create a new database (while keeping the original one) and upload the new database. The new database is based on a table in the original one.
I already have code for uploading a file to a folder in my web server. I also have successfully created a new table based on an existing database table using the CREATE TABLE new_table AS SELECT * FROM old_table
SQLite command.
However, I want to create an entire new database and not just another table.
Any ideas?