Skip to content

Commit

Permalink
[backend] Add migration for CSV mapper capability
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Oct 27, 2023
1 parent eae993e commit 9a6ac67
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { executionContext, SYSTEM_USER } from '../utils/access';
import { addCapability } from '../domain/grant';

export const up = async (next) => {
const context = executionContext('migration');
await addCapability(context, SYSTEM_USER, {
name: 'TAXIIAPI_SETCSVMAPPERS',
description: 'Manage CSV mappers',
attribute_order: 2520
});
next();
};

export const down = async (next) => {
next();
};

0 comments on commit 9a6ac67

Please sign in to comment.