mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
26 lines
679 B
JavaScript
26 lines
679 B
JavaScript
exports.up = async function (knex) {
|
|
try {
|
|
await knex.schema.alterTable("jf_library_items", function (table) {
|
|
table.timestamp("DateCreated");
|
|
});
|
|
await knex.schema.alterTable("jf_library_episodes", function (table) {
|
|
table.timestamp("DateCreated");
|
|
});
|
|
} catch (error) {
|
|
console.error(error);
|
|
}
|
|
};
|
|
|
|
exports.down = async function (knex) {
|
|
try {
|
|
await knex.schema.alterTable("jf_library_items", function (table) {
|
|
table.dropColumn("DateCreated");
|
|
});
|
|
await knex.schema.alterTable("jf_library_episodes", function (table) {
|
|
table.dropColumn("DateCreated");
|
|
});
|
|
} catch (error) {
|
|
console.error(error);
|
|
}
|
|
};
|