TrayHard
New member
Hello! I have an issue here. Here is my code for Setup.php:
So when I try to exec it through this line:
I got such error:
It ends on 'INT UNSIGNED NOT N...' like the string was trimmed to such state, like there is some limit for it. If it's correct - how can I avoid such limit and resolve this issue? If it's not about limits - what is the problem then?
Environment: Debian 9, lighttpd, php7.0-fpm, XenForo 2.0.7
PHP:
<?php
namespace Tray\League;
use XF\AddOn\AbstractSetup;
use XF\Db\Schema\Alter;
use XF\Db\Schema\Create;
class Setup extends AbstractSetup
{
use \XF\AddOn\StepRunnerInstallTrait;
use \XF\AddOn\StepRunnerUninstallTrait;
use \XF\AddOn\StepRunnerUpgradeTrait;
public function installStep1()
{
$this->schemaManager()->createTable('tray_league_matches', function(Create $table)
{
$table->addColumn('match_id', 'int');
$table->addPrimaryKey('match_id');
$table->addColumn('match_type', 'string');
$table->addColumn('opp1_id', 'int');
$table->addColumn('opp2_id', 'int');
});
}
}
So when I try to exec it through this line:
php cmd.php xf-addon:install-step Tray/League 1
I got such error:
It ends on 'INT UNSIGNED NOT N...' like the string was trimmed to such state, like there is some limit for it. If it's correct - how can I avoid such limit and resolve this issue? If it's not about limits - what is the problem then?
Environment: Debian 9, lighttpd, php7.0-fpm, XenForo 2.0.7