forked from GNUsocial/gnu-social
tweak RSSCloud plugin to use new schema layout (but still the old event); the timestamp bits were confusing things
This commit is contained in:
parent
345b7d33b8
commit
283d56bed3
@ -209,19 +209,16 @@ class RSSCloudPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
$schema = Schema::get();
|
$schema = Schema::get();
|
||||||
$schema->ensureTable('rsscloud_subscription',
|
$schema->ensureTable('rsscloud_subscription',
|
||||||
array(new ColumnDef('subscribed', 'integer',
|
array(
|
||||||
null, false, 'PRI'),
|
'fields' => array(
|
||||||
new ColumnDef('url', 'varchar',
|
'subscribed' => array('type' => 'int', 'not null' => true),
|
||||||
'255', false, 'PRI'),
|
'url' => array('type' => 'varchar', 'length' => '255', 'not null' => true),
|
||||||
new ColumnDef('failures', 'integer',
|
'failures' => array('type' => 'int', 'not null' => true, 'default' => 0),
|
||||||
null, false, null, 0),
|
'created' => array('type' => 'datetime', 'not null' => true),
|
||||||
new ColumnDef('created', 'datetime',
|
'modified' => array('type' => 'timestamp', 'not null' => true),
|
||||||
null, false),
|
),
|
||||||
new ColumnDef('modified', 'timestamp',
|
'primary key' => array('subscribed', 'url'),
|
||||||
null, false, null,
|
));
|
||||||
'CURRENT_TIMESTAMP',
|
|
||||||
'on update CURRENT_TIMESTAMP')
|
|
||||||
));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user