mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Make kromer storage type "real" to allow buying cents/pennies
This commit is contained in:
parent
fd09cc61f8
commit
e5ea1cd351
2 changed files with 3 additions and 2 deletions
|
@ -219,10 +219,10 @@ class User extends RowModel
|
|||
return $this->getRecord()->type;
|
||||
}
|
||||
|
||||
function getCoins(): int
|
||||
function getCoins(): float
|
||||
{
|
||||
if(!OPENVK_ROOT_CONF["openvk"]["preferences"]["commerce"])
|
||||
return 0;
|
||||
return 0.0;
|
||||
|
||||
return $this->getRecord()->coins;
|
||||
}
|
||||
|
|
1
install/sqls/00004-kromer-typechange.sql
Normal file
1
install/sqls/00004-kromer-typechange.sql
Normal file
|
@ -0,0 +1 @@
|
|||
ALTER TABLE `profiles` CHANGE `coins` `coins` REAL(20) UNSIGNED NOT NULL DEFAULT '0';
|
Loading…
Reference in a new issue