summaryrefslogtreecommitdiffstats
path: root/lib/Migration
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-01-02 18:48:44 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-02-05 15:10:24 -0100
commitf5da0c0e7e9bb4bb23f390ca770036bd3f061818 (patch)
treeab8fccd1fbf22ca272ceb742f5ad3c5ae7eaf2c0 /lib/Migration
parenta5427a35a9eb6464dcdcf4c8d4a1c58642b7817e (diff)
tags -> hashtags
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Migration')
-rw-r--r--lib/Migration/Version0002Date20190201000001.php12
1 files changed, 6 insertions, 6 deletions
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]
);
}