summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/entities/instance.ts
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-05-05 15:45:22 +0200
committerGitHub <noreply@github.com>2022-05-05 22:45:22 +0900
commit31c73fdfa2984c386b39f7e9ef70a52c1735efe3 (patch)
tree65a382e71fac2aa39b9e3c71a335a83ebe5ab126 /packages/backend/src/models/entities/instance.ts
parentrefactor(client): refactor 2FA settings to Composition API (#8599) (diff)
downloadmisskey-31c73fdfa2984c386b39f7e9ef70a52c1735efe3.tar.gz
misskey-31c73fdfa2984c386b39f7e9ef70a52c1735efe3.tar.bz2
misskey-31c73fdfa2984c386b39f7e9ef70a52c1735efe3.zip
chore: synchronize code and database schema (#8577)
* chore: remove default null null is always the default value if a table column is nullable, and typeorm's @Column only accepts strings for default. * chore: synchronize code with database schema * chore: sync generated migrations with code
Diffstat (limited to 'packages/backend/src/models/entities/instance.ts')
-rw-r--r--packages/backend/src/models/entities/instance.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/backend/src/models/entities/instance.ts b/packages/backend/src/models/entities/instance.ts
index bb24d6b30f..7ea9234384 100644
--- a/packages/backend/src/models/entities/instance.ts
+++ b/packages/backend/src/models/entities/instance.ts
@@ -107,53 +107,53 @@ export class Instance {
public isSuspended: boolean;
@Column('varchar', {
- length: 64, nullable: true, default: null,
+ length: 64, nullable: true,
comment: 'The software of the Instance.',
})
public softwareName: string | null;
@Column('varchar', {
- length: 64, nullable: true, default: null,
+ length: 64, nullable: true,
})
public softwareVersion: string | null;
@Column('boolean', {
- nullable: true, default: null,
+ nullable: true,
})
public openRegistrations: boolean | null;
@Column('varchar', {
- length: 256, nullable: true, default: null,
+ length: 256, nullable: true,
})
public name: string | null;
@Column('varchar', {
- length: 4096, nullable: true, default: null,
+ length: 4096, nullable: true,
})
public description: string | null;
@Column('varchar', {
- length: 128, nullable: true, default: null,
+ length: 128, nullable: true,
})
public maintainerName: string | null;
@Column('varchar', {
- length: 256, nullable: true, default: null,
+ length: 256, nullable: true,
})
public maintainerEmail: string | null;
@Column('varchar', {
- length: 256, nullable: true, default: null,
+ length: 256, nullable: true,
})
public iconUrl: string | null;
@Column('varchar', {
- length: 256, nullable: true, default: null,
+ length: 256, nullable: true,
})
public faviconUrl: string | null;
@Column('varchar', {
- length: 64, nullable: true, default: null,
+ length: 64, nullable: true,
})
public themeColor: string | null;