mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
✨ add presence migration
This commit is contained in:
parent
176fbbe082
commit
f2cb03da4b
11
util/src/migrations/1634424361103-Presence.ts
Normal file
11
util/src/migrations/1634424361103-Presence.ts
Normal file
@ -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> {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user