mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
Merge branch 'unstable' of https://github.com/CyferShepard/Jellystat into unstable
This commit is contained in:
@@ -10,7 +10,7 @@ exports.up = async function(knex) {
|
||||
table.text('APP_USER');
|
||||
table.text('APP_PASSWORD');
|
||||
});
|
||||
await knex.raw(`ALTER TABLE app_config OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE app_config OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
}catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -20,7 +20,7 @@ exports.up = async function(knex) {
|
||||
table.timestamp('ActivityDateInserted').defaultTo(knex.fn.now());
|
||||
table.text('PlayMethod');
|
||||
});
|
||||
await knex.raw(`ALTER TABLE jf_activity_watchdog OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE jf_activity_watchdog OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -11,7 +11,7 @@ exports.up = async function(knex) {
|
||||
table.text('CollectionType').notNullable();
|
||||
table.text('ImageTagsPrimary');
|
||||
});
|
||||
await knex.raw(`ALTER TABLE jf_libraries OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE jf_libraries OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -22,7 +22,7 @@ exports.up = async function(knex) {
|
||||
table.text('ParentId').notNullable().references('Id').inTable('jf_libraries').onDelete('SET NULL').onUpdate('NO ACTION');
|
||||
table.text('PrimaryImageHash');
|
||||
});
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_library_items OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_library_items OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
@@ -16,7 +16,7 @@ exports.up = async function(knex) {
|
||||
table.text('SeriesPrimaryImageTag');
|
||||
});
|
||||
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_library_seasons OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_library_seasons OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -24,7 +24,7 @@ exports.up = async function(knex) {
|
||||
table.text('SeriesName');
|
||||
});
|
||||
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_library_episodes OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_library_episodes OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -21,7 +21,7 @@ exports.up = async function(knex) {
|
||||
table.text('PlayMethod');
|
||||
});
|
||||
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_playback_activity OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_playback_activity OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
table.boolean('IsAdministrator');
|
||||
});
|
||||
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_users OWNER TO ${process.env.POSTGRES_USER};`);;
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_users OWNER TO "${process.env.POSTGRES_USER}";`);;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -44,7 +44,7 @@ exports.up = function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_last_user_activity(text)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ exports.up = async function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_library_stats(integer, text)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -20,7 +20,7 @@ exports.up = function(knex) {
|
||||
END;
|
||||
$BODY$;
|
||||
ALTER FUNCTION fs_most_active_user(integer)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@ exports.up = async function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_most_played_items(integer, text)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -53,7 +53,7 @@ exports.up = async function(knex) {
|
||||
END;
|
||||
$BODY$;
|
||||
ALTER FUNCTION fs_most_popular_items(integer, text)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -22,7 +22,7 @@ exports.up = async function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_most_used_clients(integer)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -51,7 +51,7 @@ exports.up = function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_most_viewed_libraries(integer)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -32,7 +32,7 @@ exports.up = async function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_user_stats(integer, text)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -48,7 +48,7 @@ exports.up = async function (knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_watch_stats_over_time(integer)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -56,7 +56,7 @@ exports.up =async function(knex) {
|
||||
END;
|
||||
$BODY$;
|
||||
ALTER FUNCTION fs_watch_stats_popular_days_of_week(integer)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ exports.up =async function(knex) {
|
||||
END;
|
||||
$BODY$;
|
||||
ALTER FUNCTION fs_watch_stats_popular_hour_of_day(integer)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -12,7 +12,7 @@ exports.up = async function(knex) {
|
||||
table.text('Type');
|
||||
});
|
||||
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_item_info OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_item_info OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -37,7 +37,7 @@ exports.up = function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_last_user_activity(text)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`).catch(function(error) {
|
||||
console.error(error);
|
||||
});
|
||||
@@ -90,7 +90,7 @@ exports.up = function(knex) {
|
||||
$BODY$;
|
||||
|
||||
ALTER FUNCTION fs_last_user_activity(text)
|
||||
OWNER TO ${process.env.POSTGRES_USER};
|
||||
OWNER TO "${process.env.POSTGRES_USER}";
|
||||
`);
|
||||
};
|
||||
|
||||
@@ -15,7 +15,7 @@ exports.up = async function(knex) {
|
||||
table.bigInteger('PlayDuration');
|
||||
});
|
||||
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_playback_reporting_plugin_data OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE IF EXISTS jf_playback_reporting_plugin_data OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -12,7 +12,7 @@ exports.up = async function(knex) {
|
||||
table.json('Log');
|
||||
table.text('Result');
|
||||
});
|
||||
await knex.raw(`ALTER TABLE jf_logging OWNER TO ${process.env.POSTGRES_USER};`);
|
||||
await knex.raw(`ALTER TABLE jf_logging OWNER TO "${process.env.POSTGRES_USER}";`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user