Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-10-02 16:17:03 +0300
committerdartcafe <github@dartcafe.de>2020-10-02 16:17:03 +0300
commit83689c9eec8133d8c937e5c40920a74d928c296d (patch)
tree49e34aebfa83dd1f839b52199c2dd96f8ff71898
parent88cce480d507b0a725c78be4ef22211524ba3566 (diff)
fix migration1.6-circles-alpha3
-rw-r--r--lib/Migration/Version0105Date20200903172733.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Migration/Version0105Date20200903172733.php b/lib/Migration/Version0105Date20200903172733.php
index 41e49e95..819c8870 100644
--- a/lib/Migration/Version0105Date20200903172733.php
+++ b/lib/Migration/Version0105Date20200903172733.php
@@ -33,7 +33,7 @@ use OCP\Migration\IOutput;
* Installation class for the polls app.
* Initial db creation
*/
-class Version0106Date20211001092239 extends SimpleMigrationStep {
+class Version0105Date20200903172733 extends SimpleMigrationStep {
/** @var IDBConnection */
protected $connection;
@@ -60,12 +60,13 @@ class Version0106Date20211001092239 extends SimpleMigrationStep {
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
- if ($schema->hasTable('polls_share')) {
- $table = $schema->getTable('polls_share');
- if (!$table->hasColumn('display_name')) {
- $table->addColumn('display_name', 'string', [
+ if ($schema->hasTable('polls_polls')) {
+ $table = $schema->getTable('polls_polls');
+ if (!$table->hasColumn('important')) {
+ $table->addColumn('important', 'integer', [
+ 'length' => 11,
'notnull' => true,
- 'length' => 64,
+ 'default' => 0
]);
}
}