-
-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathtemplates.ts
More file actions
33 lines (25 loc) · 791 Bytes
/
templates.ts
File metadata and controls
33 lines (25 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* eslint-disable unicorn/template-indent */
// templates for migration file creation
export const js = `
/** @type {import('umzug').MigrationFn<any>} */
exports.up = async params => {};
/** @type {import('umzug').MigrationFn<any>} */
exports.down = async params => {};
`.trimStart()
export const ts = `
import type { MigrationFn } from 'umzug';
export const up: MigrationFn = async params => {};
export const down: MigrationFn = async params => {};
`.trimStart()
export const mjs = `
/** @type {import('umzug').MigrationFn<any>} */
export const up = async params => {};
/** @type {import('umzug').MigrationFn<any>} */
export const down = async params => {};
`.trimStart()
export const sqlUp = `
-- up migration
`.trimStart()
export const sqlDown = `
-- down migration
`.trimStart()