mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-04-21 14:39:43 +00:00
Put umzug in server/libs and remove unneeded dependencies from it
This commit is contained in:
parent
8a28029809
commit
6fb1202c1c
15 changed files with 808 additions and 526 deletions
32
server/libs/umzug/templates.js
Normal file
32
server/libs/umzug/templates.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
'use strict'
|
||||
/* eslint-disable unicorn/template-indent */
|
||||
// templates for migration file creation
|
||||
Object.defineProperty(exports, '__esModule', { value: true })
|
||||
exports.sqlDown = exports.sqlUp = exports.mjs = exports.ts = exports.js = void 0
|
||||
exports.js = `
|
||||
/** @type {import('umzug').MigrationFn<any>} */
|
||||
exports.up = async params => {};
|
||||
|
||||
/** @type {import('umzug').MigrationFn<any>} */
|
||||
exports.down = async params => {};
|
||||
`.trimStart()
|
||||
exports.ts = `
|
||||
import type { MigrationFn } from 'umzug';
|
||||
|
||||
export const up: MigrationFn = async params => {};
|
||||
export const down: MigrationFn = async params => {};
|
||||
`.trimStart()
|
||||
exports.mjs = `
|
||||
/** @type {import('umzug').MigrationFn<any>} */
|
||||
export const up = async params => {};
|
||||
|
||||
/** @type {import('umzug').MigrationFn<any>} */
|
||||
export const down = async params => {};
|
||||
`.trimStart()
|
||||
exports.sqlUp = `
|
||||
-- up migration
|
||||
`.trimStart()
|
||||
exports.sqlDown = `
|
||||
-- down migration
|
||||
`.trimStart()
|
||||
//# sourceMappingURL=templates.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue