xxxxxxxxxx
# move to the directory where the script is located and run it like so
cd (path to directory)
python name.py
xxxxxxxxxx
<?php
# Change the ENUM contstraint for EmployeeRole to include a contractor role
$field = array(
'EmployeeRole' => array(
'type' => "ENUM",
'constraint' => ['Employee','Admin','Contractor'],
'default' => 'Employee'
)
);
# Modify the field
$this->dbforge->modify_column('Employees', $field);