public function addPrimaryAutoIncrementIdFieldToTable($table): bool
    {
        // Drop primary key - suspend error because we can have no primary index
        @$this->sql_query('ALTER IGNORE TABLE `' . $table . '` DROP PRIMARY KEY');
        // Create field and primary index
        $this->sql_query('ALTER IGNORE TABLE  `' . $table . '` ADD  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST');

        return true;
    }
public function addPrimaryAutoIncrementIdFieldToTable($table): bool
    {
        // Drop primary key - suspend error because we can have no primary index
        @$this->sql_query('ALTER IGNORE TABLE `' . $table . '` DROP PRIMARY KEY');
        // Create field and primary index
        $this->sql_query('ALTER IGNORE TABLE  `' . $table . '` ADD  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST');

        return true;
    }
public function addPrimaryAutoIncrementIdFieldToTable ( $ table ) : bool { // Drop primary key - suspend error because we can have no primary index @ $ this -> sql_query ( 'ALTER IGNORE TABLE `' . $ table . '` DROP PRIMARY KEY' ) ; // Create field and primary index $ this -> sql_query ( 'ALTER IGNORE TABLE  `' . $ table . '` ADD  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST' ) ; return true ; }
Create ID field for table - required for Entity management

@param string $table
@return bool
Create ID field for table - required for Entity management