diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-08-13 20:05:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-13 20:05:01 +0900 |
| commit | ee0a44559040e83ce7d184bef57372f9c3602a75 (patch) | |
| tree | fae0ffb3e17753ae1856bbc1751b7b1cc618abb4 /migration | |
| parent | WIP: Improve admin dashboard (diff) | |
| download | sharkey-ee0a44559040e83ce7d184bef57372f9c3602a75.tar.gz sharkey-ee0a44559040e83ce7d184bef57372f9c3602a75.tar.bz2 sharkey-ee0a44559040e83ce7d184bef57372f9c3602a75.zip | |
Option objectStorageSetPublicRead (#6645)
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1597230137744-objectStorageSetPublicRead.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/migration/1597230137744-objectStorageSetPublicRead.ts b/migration/1597230137744-objectStorageSetPublicRead.ts new file mode 100644 index 0000000000..f040f2afdd --- /dev/null +++ b/migration/1597230137744-objectStorageSetPublicRead.ts @@ -0,0 +1,14 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class objectStorageSetPublicRead1597230137744 implements MigrationInterface { + name = 'objectStorageSetPublicRead1597230137744' + + public async up(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "meta" ADD "objectStorageSetPublicRead" boolean NOT NULL DEFAULT false`); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "objectStorageSetPublicRead"`); + } + +} |