summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-05-27 16:56:06 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-27 16:56:06 -0100
commit169b4927e570c8830870a9a4138743bc737d0dbe (patch)
tree4f1d5cd95b8fc7764bcc41d369a8d83a44f8cc84
parent0c8dce5c61bbe784c0148a4f372759c5b19366a9 (diff)
db fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--composer.lock8
-rw-r--r--lib/Db/CoreRequestBuilder.php5
-rw-r--r--lib/Migration/Version0002Date20190506000001.php2
3 files changed, 9 insertions, 6 deletions
diff --git a/composer.lock b/composer.lock
index 4d68e5f6..3d0a238f 100644
--- a/composer.lock
+++ b/composer.lock
@@ -12,12 +12,12 @@
"source": {
"type": "git",
"url": "https://github.com/daita/my-small-php-tools.git",
- "reference": "71dda56cec1c9dadad73497ebf5ce98287fe0f99"
+ "reference": "732d54bca742e3ecdb2b544589550a37172c1258"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/daita/my-small-php-tools/zipball/71dda56cec1c9dadad73497ebf5ce98287fe0f99",
- "reference": "71dda56cec1c9dadad73497ebf5ce98287fe0f99",
+ "url": "https://api.github.com/repos/daita/my-small-php-tools/zipball/732d54bca742e3ecdb2b544589550a37172c1258",
+ "reference": "732d54bca742e3ecdb2b544589550a37172c1258",
"shasum": ""
},
"require": {
@@ -40,7 +40,7 @@
}
],
"description": "My small PHP Tools",
- "time": "2019-05-18T16:08:10+00:00"
+ "time": "2019-05-27T17:53:41+00:00"
},
{
"name": "friendica/json-ld",
diff --git a/lib/Db/CoreRequestBuilder.php b/lib/Db/CoreRequestBuilder.php
index 5fe3d771..5c1c9f59 100644
--- a/lib/Db/CoreRequestBuilder.php
+++ b/lib/Db/CoreRequestBuilder.php
@@ -969,9 +969,12 @@ class CoreRequestBuilder {
self::TABLE_REQUEST_QUEUE,
self::TABLE_ACTORS,
self::TABLE_STREAMS,
+ self::TABLE_HASHTAGS,
self::TABLE_FOLLOWS,
self::TABLE_CACHE_ACTORS,
- self::TABLE_CACHE_DOCUMENTS
+ self::TABLE_CACHE_DOCUMENTS,
+ self::TABLE_STREAM_QUEUE,
+ self::TABLE_STREAM_ACTIONS
];
foreach ($tables as $table) {
diff --git a/lib/Migration/Version0002Date20190506000001.php b/lib/Migration/Version0002Date20190506000001.php
index fc7e6b36..a115997c 100644
--- a/lib/Migration/Version0002Date20190506000001.php
+++ b/lib/Migration/Version0002Date20190506000001.php
@@ -422,7 +422,7 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
$table->addColumn(
'attachments', Type::TEXT,
[
- 'notnull' => true
+ 'notnull' => false
]
);
$table->addColumn(