Changed actor foot column to decimal.
This commit is contained in:
23
migrations/20260301042453_foot_float.js
Normal file
23
migrations/20260301042453_foot_float.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
exports.up = async function(knex) {
|
||||||
|
await knex.schema.alterTable('actors', (table) => {
|
||||||
|
table.decimal('foot')
|
||||||
|
.alter();
|
||||||
|
});
|
||||||
|
|
||||||
|
await knex.schema.alterTable('actors_profiles', (table) => {
|
||||||
|
table.decimal('foot')
|
||||||
|
.alter();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = async function(knex) {
|
||||||
|
await knex.schema.alterTable('actors', (table) => {
|
||||||
|
table.integer('foot')
|
||||||
|
.alter();
|
||||||
|
});
|
||||||
|
|
||||||
|
await knex.schema.alterTable('actors_profiles', (table) => {
|
||||||
|
table.integer('foot')
|
||||||
|
.alter();
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -891,6 +891,8 @@ async function scrapeActors(argNames) {
|
|||||||
console.log(util.inspect(profiles, { depth: Infinity, colors: true }));
|
console.log(util.inspect(profiles, { depth: Infinity, colors: true }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('PROFILES', profiles);
|
||||||
|
|
||||||
if (argv.save) {
|
if (argv.save) {
|
||||||
await storeProfiles(profiles);
|
await storeProfiles(profiles);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user