Open sgdot opened 4 months ago
IDs have a restricted type. But you can use a bigint if you like. Just add it manually, RedBeanPHP will not change it.
$a = R::dispense('aaa');
R::store($a);
R::exec("ALTER TABLE aaa ADD COLUMN val bigint");
$a->val = -1000000000000;
R::store($a);
print_r(R::inspect('aaa'));
print_r(R::findAll('aaa'));
Hi, to store telegram chat id, I need large integers, including those with negative values, but redbean can't do it
I have file
$test1 save long int as double scheme
$test2 failed when saving because test_sign_id has type
int(11) unsigned
scheme