From f82167656bf5e22a1ffc65823d0027ffe2e95f40 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 1 Mar 2026 04:27:29 +0100 Subject: [PATCH] Changed actor foot column to decimal. --- migrations/20260301042453_foot_float.js | 23 +++++++++++++++++++++++ src/actors.js | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 migrations/20260301042453_foot_float.js diff --git a/migrations/20260301042453_foot_float.js b/migrations/20260301042453_foot_float.js new file mode 100644 index 00000000..4e0831ed --- /dev/null +++ b/migrations/20260301042453_foot_float.js @@ -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(); + }); +}; diff --git a/src/actors.js b/src/actors.js index 98d25d00..f9a513c2 100755 --- a/src/actors.js +++ b/src/actors.js @@ -891,6 +891,8 @@ async function scrapeActors(argNames) { console.log(util.inspect(profiles, { depth: Infinity, colors: true })); } + console.log('PROFILES', profiles); + if (argv.save) { await storeProfiles(profiles); }