mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 14:18:26 +02:00
disable migrations
This commit is contained in:
parent
6cdf53e262
commit
72d8ad3204
2 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,10 @@ async function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function runMigrations() {
|
export async function runMigrations() {
|
||||||
|
if (process.env.DISABLE_MIGRATIONS) {
|
||||||
|
console.log("Migrations are disabled. Skipping...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const appVersion = APP_VERSION;
|
const appVersion = APP_VERSION;
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,10 @@ function backupDb() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function runMigrations() {
|
export async function runMigrations() {
|
||||||
|
if (process.env.DISABLE_MIGRATIONS) {
|
||||||
|
console.log("Migrations are disabled. Skipping...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const appVersion = APP_VERSION;
|
const appVersion = APP_VERSION;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue