From 46b78cb4ffb17ab372ef5625a9c1b24d5b100972 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 11 Apr 2019 19:03:49 +0900 Subject: [PATCH] Increase url column length --- src/models/entities/app.ts | 2 +- src/models/entities/emoji.ts | 4 ++-- src/models/entities/follow-request.ts | 8 ++++---- src/models/entities/following.ts | 8 ++++---- src/models/entities/meta.ts | 8 ++++---- src/models/entities/note.ts | 2 +- src/models/entities/sw-subscription.ts | 2 +- src/models/entities/user.ts | 18 +++++++++--------- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/models/entities/app.ts b/src/models/entities/app.ts index d0c89000f..ea8754631 100644 --- a/src/models/entities/app.ts +++ b/src/models/entities/app.ts @@ -53,7 +53,7 @@ export class App { public permission: string[]; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: 'The callbackUrl of the App.' }) public callbackUrl: string | null; diff --git a/src/models/entities/emoji.ts b/src/models/entities/emoji.ts index da04da897..020636a7f 100644 --- a/src/models/entities/emoji.ts +++ b/src/models/entities/emoji.ts @@ -25,12 +25,12 @@ export class Emoji { public host: string | null; @Column('varchar', { - length: 256, + length: 512, }) public url: string; @Column('varchar', { - length: 256, nullable: true + length: 512, nullable: true }) public uri: string | null; diff --git a/src/models/entities/follow-request.ts b/src/models/entities/follow-request.ts index 80a71fe48..22ec26396 100644 --- a/src/models/entities/follow-request.ts +++ b/src/models/entities/follow-request.ts @@ -53,13 +53,13 @@ export class FollowRequest { public followerHost: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followerInbox: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followerSharedInbox: string | null; @@ -71,13 +71,13 @@ export class FollowRequest { public followeeHost: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followeeInbox: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followeeSharedInbox: string | null; diff --git a/src/models/entities/following.ts b/src/models/entities/following.ts index 963873d11..ee3286a1a 100644 --- a/src/models/entities/following.ts +++ b/src/models/entities/following.ts @@ -48,13 +48,13 @@ export class Following { public followerHost: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followerInbox: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followerSharedInbox: string | null; @@ -66,13 +66,13 @@ export class Following { public followeeHost: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followeeInbox: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: '[Denormalized]' }) public followeeSharedInbox: string | null; diff --git a/src/models/entities/meta.ts b/src/models/entities/meta.ts index c34f5b690..00a71cd82 100644 --- a/src/models/entities/meta.ts +++ b/src/models/entities/meta.ts @@ -78,27 +78,27 @@ export class Meta { public blockedHosts: string[]; @Column('varchar', { - length: 256, + length: 512, nullable: true, default: '/assets/ai.png' }) public mascotImageUrl: string | null; @Column('varchar', { - length: 256, + length: 512, nullable: true }) public bannerUrl: string | null; @Column('varchar', { - length: 256, + length: 512, nullable: true, default: 'https://ai.misskey.xyz/aiart/yubitun.png' }) public errorImageUrl: string | null; @Column('varchar', { - length: 256, + length: 512, nullable: true }) public iconUrl: string | null; diff --git a/src/models/entities/note.ts b/src/models/entities/note.ts index 4c481964b..5e8397819 100644 --- a/src/models/entities/note.ts +++ b/src/models/entities/note.ts @@ -126,7 +126,7 @@ export class Note { @Index({ unique: true }) @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: 'The URI of a note. it will be null when the note is local.' }) public uri: string | null; diff --git a/src/models/entities/sw-subscription.ts b/src/models/entities/sw-subscription.ts index f0f2a69f1..7c3f6f0a6 100644 --- a/src/models/entities/sw-subscription.ts +++ b/src/models/entities/sw-subscription.ts @@ -21,7 +21,7 @@ export class SwSubscription { public user: User | null; @Column('varchar', { - length: 256, + length: 512, }) public endpoint: string; diff --git a/src/models/entities/user.ts b/src/models/entities/user.ts index 40d27a42b..ebf07ff3f 100644 --- a/src/models/entities/user.ts +++ b/src/models/entities/user.ts @@ -96,12 +96,12 @@ export class User { public tags: string[]; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, }) public avatarUrl: string | null; @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, }) public bannerUrl: string | null; @@ -175,26 +175,26 @@ export class User { public host: string | null; @Column('varchar', { - length: 256, nullable: true, - comment: 'The inbox of the User. It will be null if the origin of the user is local.' + length: 512, nullable: true, + comment: 'The inbox URL of the User. It will be null if the origin of the user is local.' }) public inbox: string | null; @Column('varchar', { - length: 256, nullable: true, - comment: 'The sharedInbox of the User. It will be null if the origin of the user is local.' + length: 512, nullable: true, + comment: 'The sharedInbox URL of the User. It will be null if the origin of the user is local.' }) public sharedInbox: string | null; @Column('varchar', { - length: 256, nullable: true, - comment: 'The featured of the User. It will be null if the origin of the user is local.' + length: 512, nullable: true, + comment: 'The featured URL of the User. It will be null if the origin of the user is local.' }) public featured: string | null; @Index() @Column('varchar', { - length: 256, nullable: true, + length: 512, nullable: true, comment: 'The URI of the User. It will be null if the origin of the user is local.' }) public uri: string | null;