How do you rename a Room database?

I’ve got a room database named DATABASE2 that I can instantiate with Room.databaseBuilder(application, ThisDatabase.class, DATABASE2) However, I want to rename this database to DATABASE1 so that the same data can be obtained from Room.databaseBuilder(application, ThisDatabase.class, DATABASE1) Is there a way to simply rename the database, and overwrite an existing DATABASE1? Or would it be easier…

Details

how do i make the option selected in append jquery in foreach

How can I make the option selected according to the value I get from value[0] in the loop? $.each(data, function(key, value) { $(“#cektubuh”).append( `<tr> <td> <select name=”duration_type[]” class=”form-control” required> // here I want to add the selected option according to $ {value [0]} <option value=”Semester”>Semester</option> <option value=”Month”>Month</option> </select> </td> </tr>` }); });

Details

The SSL works on www only but error on non-www

i use lets encrypt certbot on apache centos7 the ssl works on www only but non-www says site not secure what could be the problem? this is the config <VirtualHost *:80> ServerName txt-chat.com ServerAlias www.txt-chat.com DocumentRoot /var/www/txt-chat/ </VirtualHost> <VirtualHost *:443> ServerName txt-chat.com ServerAlias www.txt-chat.com DocumentRoot /var/www/txt-chat/ Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/txt-chat.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/txt-chat.com/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/txt-chat.com/chain.pem </VirtualHost>

Details