summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-17 00:51:51 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-17 00:51:51 +0200
commitf2cb03da4bcfd74e1082652f21bf182853d7b2e9 (patch)
treecf75b7c405749b390efd17d0384c1b45d37c6f06 /util
parentMerge branch 'master' of http://github.com/fosscord/fosscord-server (diff)
downloadserver-f2cb03da4bcfd74e1082652f21bf182853d7b2e9.tar.xz
:sparkles: add presence migration
Diffstat (limited to 'util')
-rw-r--r--util/src/migrations/1634424361103-Presence.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/src/migrations/1634424361103-Presence.ts b/util/src/migrations/1634424361103-Presence.ts
new file mode 100644
index 00000000..729955b8
--- /dev/null
+++ b/util/src/migrations/1634424361103-Presence.ts
@@ -0,0 +1,11 @@
+import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
+
+export class Presence1634424361103 implements MigrationInterface {
+	name = "Presence1634424361103";
+
+	public async up(queryRunner: QueryRunner): Promise<void> {
+		queryRunner.addColumn("sessions", new TableColumn({ name: "activites", type: "text" }));
+	}
+
+	public async down(queryRunner: QueryRunner): Promise<void> {}
+}