mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 19:43:16 +00:00
Fix typo in table 'client_relase' -> 'client_release' ( and other of the same typo ) (#703)
* Fixed typo in table name 'client_relase' -> 'client_release'. Fixed more typos of the same typo. * Fixed migration ( but dirty lol )
This commit is contained in:
1 parent
c54a19defc
commit
40f08ed76c
10 files changed
+37
-21
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { Column, Entity} from "typeorm";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
|
||||
@Entity("client_relase")
|
||||
export class Relase extends BaseClass {
|
||||
@Entity("client_release")
|
||||
export class Release extends BaseClass {
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@@ -188,8 +188,8 @@ export interface ConfigValue {
|
||||
},
|
||||
client: {
|
||||
useTestClient: Boolean;
|
||||
relases: {
|
||||
useLocalRelases: Boolean; //TODO
|
||||
releases: {
|
||||
useLocalRelease: Boolean; //TODO
|
||||
upstreamVersion: string;
|
||||
}
|
||||
},
|
||||
@@ -222,7 +222,7 @@ export const DefaultConfigOptions: ConfigValue = {
|
||||
},
|
||||
general: {
|
||||
instanceName: "Fosscord Instance",
|
||||
instanceDescription: "This is a Fosscord instance made in pre-relase days",
|
||||
instanceDescription: "This is a Fosscord instance made in pre-release days",
|
||||
frontPage: null,
|
||||
tosPage: null,
|
||||
correspondenceEmail: "noreply@localhost.local",
|
||||
@@ -389,8 +389,8 @@ export const DefaultConfigOptions: ConfigValue = {
|
||||
},
|
||||
client: {
|
||||
useTestClient: true,
|
||||
relases: {
|
||||
useLocalRelases: true,
|
||||
releases: {
|
||||
useLocalRelease: true,
|
||||
upstreamVersion: "0.0.264"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -27,4 +27,4 @@ export * from "./Template";
|
||||
export * from "./User";
|
||||
export * from "./VoiceState";
|
||||
export * from "./Webhook";
|
||||
export * from "./ClientRelase";
|
||||
export * from "./ClientRelease";
|
||||
@@ -0,0 +1,16 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class ReleaseTypo1648643945733 implements MigrationInterface {
|
||||
name = "ReleaseTypo1648643945733";
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
//drop table first because typeorm creates it before migrations run
|
||||
await queryRunner.dropTable("client_release", true);
|
||||
await queryRunner.renameTable("client_relase", "client_release");
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.dropTable("client_relase", true);
|
||||
await queryRunner.renameTable("client_release", "client_relase");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user