[Nodeinfo][DATABASE][Usage_stats] Fix wrong type for modified column
This commit is contained in:
parent
b6be1a3659
commit
02c67fd114
@ -6,7 +6,7 @@ if (!defined('GNUSOCIAL')) {
|
|||||||
|
|
||||||
class NodeinfoPlugin extends Plugin
|
class NodeinfoPlugin extends Plugin
|
||||||
{
|
{
|
||||||
const VERSION = '1.0.1';
|
const PLUGIN_VERSION = '1.0.2';
|
||||||
|
|
||||||
public function onRouterInitialized($m)
|
public function onRouterInitialized($m)
|
||||||
{
|
{
|
||||||
@ -170,7 +170,7 @@ class NodeinfoPlugin extends Plugin
|
|||||||
public function onPluginVersion(array &$versions)
|
public function onPluginVersion(array &$versions)
|
||||||
{
|
{
|
||||||
$versions[] = ['name' => 'Nodeinfo',
|
$versions[] = ['name' => 'Nodeinfo',
|
||||||
'version' => self::VERSION,
|
'version' => self::PLUGIN_VERSION,
|
||||||
'author' => 'chimo',
|
'author' => 'chimo',
|
||||||
'homepage' => 'https://github.com/chimo/gs-nodeinfo',
|
'homepage' => 'https://github.com/chimo/gs-nodeinfo',
|
||||||
'description' => _m('Plugin that presents basic instance information using the NodeInfo standard.')];
|
'description' => _m('Plugin that presents basic instance information using the NodeInfo standard.')];
|
||||||
|
@ -43,8 +43,7 @@ class Usage_stats extends Managed_DataObject
|
|||||||
'fields' => [
|
'fields' => [
|
||||||
'type' => ['type' => 'varchar', 'length' => 191, 'description' => 'Type of countable entity'],
|
'type' => ['type' => 'varchar', 'length' => 191, 'description' => 'Type of countable entity'],
|
||||||
'count' => ['type' => 'int', 'size' => 'int', 'default' => 0, 'description' => 'Number of entities of this type'],
|
'count' => ['type' => 'int', 'size' => 'int', 'default' => 0, 'description' => 'Number of entities of this type'],
|
||||||
|
'modified' => ['type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
|
||||||
'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
|
|
||||||
],
|
],
|
||||||
'primary key' => ['type'],
|
'primary key' => ['type'],
|
||||||
'unique keys' => [
|
'unique keys' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user