kopia lustrzana https://github.com/nextcloud/social
tags -> hashtags
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/295/head
rodzic
a5427a35a9
commit
f5da0c0e7e
|
@ -58,7 +58,7 @@ class CoreRequestBuilder {
|
|||
|
||||
const TABLE_SERVER_ACTORS = 'social_server_actors';
|
||||
const TABLE_SERVER_NOTES = 'social_server_notes';
|
||||
const TABLE_SERVER_TAGS = 'social_server_tags';
|
||||
const TABLE_SERVER_HASHTAGS = 'social_server_hashtags';
|
||||
const TABLE_SERVER_FOLLOWS = 'social_server_follows';
|
||||
|
||||
const TABLE_CACHE_ACTORS = 'social_cache_actors';
|
||||
|
|
|
@ -76,20 +76,20 @@ class Version0002Date20190201000001 extends SimpleMigrationStep {
|
|||
/** @var ISchemaWrapper $schema */
|
||||
$schema = $schemaClosure();
|
||||
|
||||
if (!$schema->hasTable(CoreRequestBuilder::TABLE_SERVER_TAGS)) {
|
||||
$table = $schema->createTable(CoreRequestBuilder::TABLE_SERVER_TAGS);
|
||||
$table->addColumn('tag', 'string', ['notnull' => false, 'length' => 63]);
|
||||
if (!$schema->hasTable(CoreRequestBuilder::TABLE_SERVER_HASHTAGS)) {
|
||||
$table = $schema->createTable(CoreRequestBuilder::TABLE_SERVER_HASHTAGS);
|
||||
$table->addColumn('hashtag', 'string', ['notnull' => false, 'length' => 63]);
|
||||
$table->addColumn(
|
||||
'trend', 'string', ['notnull' => false, 'length' => 500]
|
||||
);
|
||||
$table->setPrimaryKey(['tag']);
|
||||
$table->setPrimaryKey(['hashtag']);
|
||||
}
|
||||
|
||||
|
||||
$table = $schema->getTable(CoreRequestBuilder::TABLE_SERVER_NOTES);
|
||||
if (!$table->hasColumn('tags')) {
|
||||
if (!$table->hasColumn('hashtags')) {
|
||||
$table->addColumn(
|
||||
'tags', Type::STRING, ['notnull' => false, 'default' => '[]', 'length' => 1000]
|
||||
'hashtags', Type::STRING, ['notnull' => false, 'default' => '[]', 'length' => 1000]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue