mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 19:21:08 +10:00
Refactoring
* Refactor workspace membership system * Create setup endpoint * Use Passport.js * Several updates and fixes
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddDeletedAtToWorkspace1710371336371 implements MigrationInterface {
|
||||
name = 'AddDeletedAtToWorkspace1710371336371'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "workspaces" ADD "deletedAt" TIMESTAMP`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "workspaces" DROP COLUMN "deletedAt"`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user