Browse Source

[update] create remote table

tags/v1.8.2.4
NorbertNader 4 years ago
parent
commit
c78ff4fe91
2 changed files with 13 additions and 3 deletions
  1. +13
    -0
      modules/Utils/FileStorage/FileStorageInstall.php
  2. +0
    -3
      tests/config.example.yml

+ 13
- 0
modules/Utils/FileStorage/FileStorageInstall.php View File

@@ -43,6 +43,19 @@ class Utils_FileStorageInstall extends ModuleInstall {
return false;
}

$ret &= DB::CreateTable('utils_filestorage_remote', '
id I8 AUTO KEY,
token C(128) NOTNULL,
created_on T NOTNULL,
created_by I8 NOTNULL,
expires_on T,
times_downloaded I8',
['constraints' => ', FOREIGN KEY (id) REFERENCES utils_filestorage(id)']);
if (!$ret) {
print('Unable to create table utils_filestorage_files.<br>');
return false;
}

$this->create_data_dir();
file_put_contents($this->get_data_dir() . '.htaccess', 'deny from all');
return $ret;


+ 0
- 3
tests/config.example.yml View File

@@ -1,3 +0,0 @@
# Example config file. Copy to config.yml

URL: "http://localhost/epesi/"

Loading…
Cancel
Save