From f5da0c0e7e9bb4bb23f390ca770036bd3f061818 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 2 Jan 2019 18:48:44 -0100 Subject: [PATCH] tags -> hashtags Signed-off-by: Maxence Lange --- lib/Db/CoreRequestBuilder.php | 2 +- lib/Migration/Version0002Date20190201000001.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/Db/CoreRequestBuilder.php b/lib/Db/CoreRequestBuilder.php index cf26aee4..8ba7d80d 100644 --- a/lib/Db/CoreRequestBuilder.php +++ b/lib/Db/CoreRequestBuilder.php @@ -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'; diff --git a/lib/Migration/Version0002Date20190201000001.php b/lib/Migration/Version0002Date20190201000001.php index aecbd526..a4854098 100644 --- a/lib/Migration/Version0002Date20190201000001.php +++ b/lib/Migration/Version0002Date20190201000001.php @@ -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] ); }