Increase url column length

This commit is contained in:
syuilo 2019-04-11 19:03:49 +09:00
parent 5d6e0d0f37
commit 46b78cb4ff
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
8 changed files with 26 additions and 26 deletions

View file

@ -53,7 +53,7 @@ export class App {
public permission: string[]; public permission: string[];
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: 'The callbackUrl of the App.' comment: 'The callbackUrl of the App.'
}) })
public callbackUrl: string | null; public callbackUrl: string | null;

View file

@ -25,12 +25,12 @@ export class Emoji {
public host: string | null; public host: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, length: 512,
}) })
public url: string; public url: string;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true length: 512, nullable: true
}) })
public uri: string | null; public uri: string | null;

View file

@ -53,13 +53,13 @@ export class FollowRequest {
public followerHost: string | null; public followerHost: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followerInbox: string | null; public followerInbox: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followerSharedInbox: string | null; public followerSharedInbox: string | null;
@ -71,13 +71,13 @@ export class FollowRequest {
public followeeHost: string | null; public followeeHost: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followeeInbox: string | null; public followeeInbox: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followeeSharedInbox: string | null; public followeeSharedInbox: string | null;

View file

@ -48,13 +48,13 @@ export class Following {
public followerHost: string | null; public followerHost: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followerInbox: string | null; public followerInbox: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followerSharedInbox: string | null; public followerSharedInbox: string | null;
@ -66,13 +66,13 @@ export class Following {
public followeeHost: string | null; public followeeHost: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followeeInbox: string | null; public followeeInbox: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: '[Denormalized]' comment: '[Denormalized]'
}) })
public followeeSharedInbox: string | null; public followeeSharedInbox: string | null;

View file

@ -78,27 +78,27 @@ export class Meta {
public blockedHosts: string[]; public blockedHosts: string[];
@Column('varchar', { @Column('varchar', {
length: 256, length: 512,
nullable: true, nullable: true,
default: '/assets/ai.png' default: '/assets/ai.png'
}) })
public mascotImageUrl: string | null; public mascotImageUrl: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, length: 512,
nullable: true nullable: true
}) })
public bannerUrl: string | null; public bannerUrl: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, length: 512,
nullable: true, nullable: true,
default: 'https://ai.misskey.xyz/aiart/yubitun.png' default: 'https://ai.misskey.xyz/aiart/yubitun.png'
}) })
public errorImageUrl: string | null; public errorImageUrl: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, length: 512,
nullable: true nullable: true
}) })
public iconUrl: string | null; public iconUrl: string | null;

View file

@ -126,7 +126,7 @@ export class Note {
@Index({ unique: true }) @Index({ unique: true })
@Column('varchar', { @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.' comment: 'The URI of a note. it will be null when the note is local.'
}) })
public uri: string | null; public uri: string | null;

View file

@ -21,7 +21,7 @@ export class SwSubscription {
public user: User | null; public user: User | null;
@Column('varchar', { @Column('varchar', {
length: 256, length: 512,
}) })
public endpoint: string; public endpoint: string;

View file

@ -96,12 +96,12 @@ export class User {
public tags: string[]; public tags: string[];
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
}) })
public avatarUrl: string | null; public avatarUrl: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
}) })
public bannerUrl: string | null; public bannerUrl: string | null;
@ -175,26 +175,26 @@ export class User {
public host: string | null; public host: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: 'The inbox of the User. It will be null if the origin of the user is local.' comment: 'The inbox URL of the User. It will be null if the origin of the user is local.'
}) })
public inbox: string | null; public inbox: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: 'The sharedInbox of the User. It will be null if the origin of the user is local.' comment: 'The sharedInbox URL of the User. It will be null if the origin of the user is local.'
}) })
public sharedInbox: string | null; public sharedInbox: string | null;
@Column('varchar', { @Column('varchar', {
length: 256, nullable: true, length: 512, nullable: true,
comment: 'The featured of the User. It will be null if the origin of the user is local.' comment: 'The featured URL of the User. It will be null if the origin of the user is local.'
}) })
public featured: string | null; public featured: string | null;
@Index() @Index()
@Column('varchar', { @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.' comment: 'The URI of the User. It will be null if the origin of the user is local.'
}) })
public uri: string | null; public uri: string | null;