mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-04 17:25:41 +00:00
✨ add presence migration
This commit is contained in:
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> {}
|
||||
}
|
||||
Reference in New Issue
Block a user