Update S3 settings
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
$migrationList = [];
|
||||
$migrationList[] = 'v20210626_290004_add_s3_settings';
|
||||
$migrationList[] = 'v20210606_290003_system_meta_data';
|
||||
$migrationList[] = 'v20210606_290002_add_aws_region';
|
||||
$migrationList[] = 'v20210606_290001_update_s3_config';
|
||||
|
||||
28
core/migrations/v20210626_290004_add_s3_settings.php
Normal file
28
core/migrations/v20210626_290004_add_s3_settings.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Classes\Migration;
|
||||
|
||||
class v20210626_290004_add_s3_settings extends AbstractMigration
|
||||
{
|
||||
|
||||
public function up()
|
||||
{
|
||||
|
||||
$sql = <<<'SQL'
|
||||
REPLACE INTO `Settings` (`name`, `value`, `description`, `meta`, `category`) VALUES
|
||||
('Files: Upload Files to S3', '0', '','["value", {"label":"Value","type":"select","source":[["1","Yes"],["0","No"]]}]', 'System'),
|
||||
('Files: Amazon S3 Key for File Upload', '', 'Please provide S3 Key for uploading files','', 'System'),
|
||||
('Files: Amazon S3 Secret for File Upload', '', 'Please provide S3 Secret for uploading files','', 'System'),
|
||||
('Files: S3 Bucket', '', 'Please provide S3 Bucket name for uploading files','', 'System'),
|
||||
('Files: S3 Web Url', '', 'Please provide Url to the s3 bucket','', 'System'),
|
||||
('System: AWS Region', 'us-east-1', 'Amazon AWS Region used for file storage','', 'System');
|
||||
SQL;
|
||||
|
||||
return $this->executeQuery($sql);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user