tweak postgresql entities

Fix #10266
This commit is contained in:
syuilo
2023-03-10 14:53:56 +09:00
parent 258bd3c905
commit 99f3f0917f
10 changed files with 137 additions and 82 deletions

View File

@@ -12,7 +12,7 @@ export class Meta {
public id: string;
@Column('varchar', {
length: 128, nullable: true,
length: 1024, nullable: true,
})
public name: string | null;
@@ -25,7 +25,7 @@ export class Meta {
* メンテナの名前
*/
@Column('varchar', {
length: 128, nullable: true,
length: 1024, nullable: true,
})
public maintainerName: string | null;
@@ -33,7 +33,7 @@ export class Meta {
* メンテナの連絡先
*/
@Column('varchar', {
length: 128, nullable: true,
length: 1024, nullable: true,
})
public maintainerEmail: string | null;
@@ -48,76 +48,63 @@ export class Meta {
public useStarForReactionFallback: boolean;
@Column('varchar', {
length: 64, array: true, default: '{}',
length: 1024, array: true, default: '{}',
})
public langs: string[];
@Column('varchar', {
length: 256, array: true, default: '{}',
length: 1024, array: true, default: '{}',
})
public pinnedUsers: string[];
@Column('varchar', {
length: 256, array: true, default: '{}',
length: 1024, array: true, default: '{}',
})
public hiddenTags: string[];
@Column('varchar', {
length: 256, array: true, default: '{}',
length: 1024, array: true, default: '{}',
})
public blockedHosts: string[];
@Column('varchar', {
length: 512, array: true, default: '{/featured,/channels,/explore,/pages,/about-misskey}',
})
public pinnedPages: string[];
@Column({
...id(),
nullable: true,
})
public pinnedClipId: Clip['id'] | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public themeColor: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
default: '/assets/ai.png',
})
public mascotImageUrl: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public bannerUrl: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public backgroundImageUrl: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public logoImageUrl: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
default: 'https://xn--931a.moe/aiart/yubitun.png',
})
public errorImageUrl: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public iconUrl: string | null;
@@ -150,13 +137,13 @@ export class Meta {
public enableHcaptcha: boolean;
@Column('varchar', {
length: 64,
length: 1024,
nullable: true,
})
public hcaptchaSiteKey: string | null;
@Column('varchar', {
length: 64,
length: 1024,
nullable: true,
})
public hcaptchaSecretKey: string | null;
@@ -167,13 +154,13 @@ export class Meta {
public enableRecaptcha: boolean;
@Column('varchar', {
length: 64,
length: 1024,
nullable: true,
})
public recaptchaSiteKey: string | null;
@Column('varchar', {
length: 64,
length: 1024,
nullable: true,
})
public recaptchaSecretKey: string | null;
@@ -184,13 +171,13 @@ export class Meta {
public enableTurnstile: boolean;
@Column('varchar', {
length: 64,
length: 1024,
nullable: true,
})
public turnstileSiteKey: string | null;
@Column('varchar', {
length: 64,
length: 1024,
nullable: true,
})
public turnstileSecretKey: string | null;
@@ -218,7 +205,7 @@ export class Meta {
public enableSensitiveMediaDetectionForVideos: boolean;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public summalyProxy: string | null;
@@ -229,7 +216,7 @@ export class Meta {
public enableEmail: boolean;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public email: string | null;
@@ -240,7 +227,7 @@ export class Meta {
public smtpSecure: boolean;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public smtpHost: string | null;
@@ -251,13 +238,13 @@ export class Meta {
public smtpPort: number | null;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public smtpUser: string | null;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public smtpPass: string | null;
@@ -268,19 +255,19 @@ export class Meta {
public enableServiceWorker: boolean;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public swPublicKey: string | null;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public swPrivateKey: string | null;
@Column('varchar', {
length: 128,
length: 1024,
nullable: true,
})
public deeplAuthKey: string | null;
@@ -291,20 +278,20 @@ export class Meta {
public deeplIsPro: boolean;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public ToSUrl: string | null;
public termsOfServiceUrl: string | null;
@Column('varchar', {
length: 512,
length: 1024,
default: 'https://github.com/misskey-dev/misskey',
nullable: false,
})
public repositoryUrl: string;
@Column('varchar', {
length: 512,
length: 1024,
default: 'https://github.com/misskey-dev/misskey/issues/new',
nullable: true,
})
@@ -328,43 +315,43 @@ export class Meta {
public useObjectStorage: boolean;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public objectStorageBucket: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public objectStoragePrefix: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public objectStorageBaseUrl: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public objectStorageEndpoint: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public objectStorageRegion: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public objectStorageAccessKey: string | null;
@Column('varchar', {
length: 512,
length: 1024,
nullable: true,
})
public objectStorageSecretKey: string | null;