tags -> hashtags

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/295/head
Maxence Lange 2019-01-02 18:48:44 -01:00
rodzic a5427a35a9
commit f5da0c0e7e
2 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -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';

Wyświetl plik

@ -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]
);
}