dockerfile/examples/standardnotes/official-src/server-main/packages/auth/migrations/sqlite/1683017671034-change-cache-table-name.ts

14 lines
499 B
TypeScript

import { MigrationInterface, QueryRunner } from 'typeorm'
export class changeCacheTableName1683017671034 implements MigrationInterface {
name = 'changeCacheTableName1683017671034'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "cache_entries" RENAME TO "auth_cache_entries"')
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "auth_cache_entries" RENAME TO "cache_entries"')
}
}