mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 09:46:40 +00:00
disable migrations
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user