summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-06-02 10:38:13 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-06-02 10:38:13 -0100
commit73321dc5b1b301b1f5ef176a299b1665d8c135e7 (patch)
tree5cd47fd5de88a46dca3bb0e605855e088500abf5 /lib
parent0b4e325838827ffbc62929a46f4be6c19c8e3836 (diff)
switching cc to text
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Migration/Version0002Date20190506000001.php55
1 files changed, 39 insertions, 16 deletions
diff --git a/lib/Migration/Version0002Date20190506000001.php b/lib/Migration/Version0002Date20190506000001.php
index bf32139f..8d2c65a6 100644
--- a/lib/Migration/Version0002Date20190506000001.php
+++ b/lib/Migration/Version0002Date20190506000001.php
@@ -94,6 +94,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
+ *
+ * @throws Exception
*/
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
@@ -334,14 +336,13 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
'to_array', 'string',
[
'notnull' => true,
- 'length' => 1000,
+ 'length' => 2000,
]
);
$table->addColumn(
- 'cc', 'string',
+ 'cc', 'text',
[
- 'notnull' => true,
- 'length' => 1000,
+ 'notnull' => true
]
);
$table->addColumn(
@@ -899,6 +900,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
/**
* @param ISchemaWrapper $schema
+ *
+ * @throws Exception
*/
private function fillActors(ISchemaWrapper $schema) {
$this->duplicateTable(
@@ -921,6 +924,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
/**
* @param ISchemaWrapper $schema
+ *
+ * @throws Exception
*/
private function fillFollows(ISchemaWrapper $schema) {
$this->duplicateTable(
@@ -940,6 +945,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
/**
* @param ISchemaWrapper $schema
+ *
+ * @throws Exception
*/
private function fillHashtags(ISchemaWrapper $schema) {
$this->duplicateTable(
@@ -980,6 +987,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
/**
* @param ISchemaWrapper $schema
+ *
+ * @throws Exception
*/
private function fillStreams(ISchemaWrapper $schema) {
$this->duplicateTable(
@@ -1014,6 +1023,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
/**
* @param ISchemaWrapper $schema
+ *
+ * @throws Exception
*/
private function fillCacheActors(ISchemaWrapper $schema) {
$this->duplicateTable(
@@ -1045,6 +1056,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
/**
* @param ISchemaWrapper $schema
+ *
+ * @throws Exception
*/
private function fillCacheDocuments(ISchemaWrapper $schema) {
$this->duplicateTable(
@@ -1070,6 +1083,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
/**
* @param ISchemaWrapper $schema
+ *
+ * @throws Exception
*/
private function fillRequestQueue(ISchemaWrapper $schema) {
$this->duplicateTable(
@@ -1089,6 +1104,11 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
}
+ /**
+ * @param ISchemaWrapper $schema
+ *
+ * @throws Exception
+ */
private function fillStreamActions(ISchemaWrapper $schema) {
$this->duplicateTable(
$schema, 'social_stream_actions', CoreRequestBuilder::TABLE_STREAM_ACTIONS,
@@ -1103,18 +1123,21 @@ class Version0002Date20190506000001 extends SimpleMigrationStep {
private function fillStreamQueue(ISchemaWrapper $schema) {
- $this->duplicateTable(
- $schema, 'social_queue_stream', CoreRequestBuilder::TABLE_STREAM_QUEUE,
- [
- 'id',
- 'token',
- 'stream_id',
- 'type',
- 'status',
- 'tries',
- 'last'
- ]
- );
+ try {
+ $this->duplicateTable(
+ $schema, 'social_queue_stream', CoreRequestBuilder::TABLE_STREAM_QUEUE,
+ [
+ 'id',
+ 'token',
+ 'stream_id',
+ 'type',
+ 'status',
+ 'tries',
+ 'last'
+ ]
+ );
+ } catch (Exception $e) {
+ }
}