<?php

if (!defined('ABSPATH')) exit;
return [
    'description' => 'Add parent_id + derivative_role to instinctor_images for derivative tracking',
    'up' => [
        "ALTER TABLE {prefix}instinctor_images ADD COLUMN parent_id int unsigned NULL DEFAULT NULL AFTER id",
        "ALTER TABLE {prefix}instinctor_images ADD COLUMN derivative_role varchar(2) NOT NULL DEFAULT '' AFTER parent_id",
    ],
    'down' => [
        "ALTER TABLE {prefix}instinctor_images DROP COLUMN derivative_role",
        "ALTER TABLE {prefix}instinctor_images DROP COLUMN parent_id",
    ],
];
