mirror of
https://github.com/standardnotes/server
synced 2026-01-16 20:04:32 -05:00
* chore: release latest changes * update yarn lockfile * remove stale files * fix ci env * remove mysql command overwrite * remove mysql overwrite from example * fix cookie cooldown in memory
16 lines
667 B
TypeScript
16 lines
667 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm'
|
|
|
|
export class AddApplicationAndSnjsToSessions1710236132439 implements MigrationInterface {
|
|
name = 'AddApplicationAndSnjsToSessions1710236132439'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query('ALTER TABLE `sessions` ADD `application` varchar(255) NULL')
|
|
await queryRunner.query('ALTER TABLE `sessions` ADD `snjs` varchar(255) NULL')
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query('ALTER TABLE `sessions` DROP COLUMN `snjs`')
|
|
await queryRunner.query('ALTER TABLE `sessions` DROP COLUMN `application`')
|
|
}
|
|
}
|