mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
16 lines
631 B
TypeScript
16 lines
631 B
TypeScript
/* MIGRATION TO ADD PRIVATE KEY IN COMMUNITY TABLE
|
|
*
|
|
* This migration adds a field for the private key in the community.table
|
|
*/
|
|
|
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
|
export async function upgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
|
|
await queryFn('ALTER TABLE `contribution_messages` ADD INDEX(`contribution_id`);')
|
|
}
|
|
|
|
export async function downgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
|
|
await queryFn('ALTER TABLE `contribution_messages` DROP INDEX `contribution_id`')
|
|
}
|