mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-24 19:32:46 +01:00
✨ add presence migration
This commit is contained in:
parent
60220a292d
commit
c378724bf3
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