Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixing boolean and +avatar_version
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed Dec 6, 2018
commit f08e7f29b10f4b2f68ba1526ac35a08b1aed603c
11 changes: 8 additions & 3 deletions lib/Migration/Version0001Date20181204203147.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'notnull' => false,
'length' => 2000,
]);
$table->addColumn('avatar_version', 'integer', [
'notnull' => false,
'length' => 2,
]);
$table->addColumn('creation', 'datetime', [
'notnull' => false,
]);
Expand Down Expand Up @@ -101,7 +105,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
]);
$table->addColumn('accepted', 'boolean', [
'notnull' => true,
'default' => '',
'default' => false
]);
$table->addColumn('creation', 'datetime', [
'notnull' => false,
Expand Down Expand Up @@ -171,7 +175,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
]);
$table->addColumn('local', 'boolean', [
'notnull' => true,
'default' => '',
'default' => false
]);
$table->setPrimaryKey(['id']);
}
Expand All @@ -192,7 +196,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
]);
$table->addColumn('local', 'boolean', [
'notnull' => true,
'default' => '',
'default' => false
]);
$table->addColumn('following', 'string', [
'notnull' => true,
Expand Down Expand Up @@ -284,6 +288,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
]);
$table->addColumn('public', 'boolean', [
'notnull' => true,
'default' => false
]);
$table->addColumn('error', 'smallint', [
'notnull' => true,
Expand Down