mizzkey/packages/backend/migration/1699337454434-schedulenote.js
mattyatea 387faf55cf
dbに保存するようにした
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
2023-11-08 15:33:46 +09:00

12 lines
449 B
JavaScript

export class Schedulenote1699337454434 {
name = 'Schedulenote1699337454434'
async up(queryRunner) {
await queryRunner.query(`CREATE TABLE "note_schedule" ("id" character varying(32) NOT NULL, "note" jsonb NOT NULL, "userId" character varying(260) NOT NULL, CONSTRAINT "PK_3a1ae2db41988f4994268218436" PRIMARY KEY ("id"))`);
}
async down(queryRunner) {
await queryRunner.query(`DROP TABLE "note_schedule"`);
}
}