Fix #3030: Add upload the sqlite database feature
This commit is contained in:
@@ -68,6 +68,9 @@
|
||||
<?= $this->url->link(t('Download the database'), 'ConfigController', 'downloadDb', array(), true) ?>
|
||||
<?= t('(Gzip compressed Sqlite file)') ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $this->url->link(t('Upload the database'), 'ConfigController', 'uploadDb', array(), false, 'js-modal-medium') ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $this->url->link(t('Optimize the database'), 'ConfigController', 'optimizeDb', array(), true) ?>
|
||||
<?= t('(VACUUM command)') ?>
|
||||
|
||||
18
app/Template/config/upload_db.php
Normal file
18
app/Template/config/upload_db.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Upload the Sqlite database') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="alert">
|
||||
<ul>
|
||||
<li><?= t('You can upload Gzip compressed Sqlite database you previously downloaded') ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<form action="<?= $this->url->href('ConfigController', 'uploadDbSave') ?>" method="post" enctype="multipart/form-data">
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<?= $this->form->label(t('Database file'), 'file') ?>
|
||||
<?= $this->form->file('file') ?>
|
||||
|
||||
<?= $this->modal->submitButtons(array('submitLabel' => t('Upload'))) ?>
|
||||
</form>
|
||||
Reference in New Issue
Block a user