mirror of
https://github.com/standardnotes/server
synced 2026-08-02 12:15:56 -04:00
* feat: extract cache entry model to domain-core * fix(auth): rename cache table to be auth specific
14 lines
499 B
TypeScript
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"')
|
|
}
|
|
}
|