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-05-06 12:53:14 +0300
committerdartcafe <github@dartcafe.de>2020-05-06 12:53:14 +0300
commit7744ab484e7bf183a757d41e39bd05ff7c8526e1 (patch)
tree9e2fa545ebdec962208cc70ff6a3ddfa41878791 /lib/Migration
parentb2ac80dc58ab1b38c5d5133b1a10dcec6e76ae44 (diff)
remove obsolete comments
Diffstat (limited to 'lib/Migration')
-rw-r--r--lib/Migration/Version0009Date20181125061900.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/Migration/Version0009Date20181125061900.php b/lib/Migration/Version0009Date20181125061900.php
index 956bfa4c..ca701d4a 100644
--- a/lib/Migration/Version0009Date20181125061900.php
+++ b/lib/Migration/Version0009Date20181125061900.php
@@ -134,7 +134,7 @@ class Version0009Date20181125061900 extends SimpleMigrationStep {
'notnull' => false,
]);
$table->addColumn('poll_option_text', Type::STRING, [
- 'notnull' => false, // maybe true?
+ 'notnull' => false,
'length' => 256,
]);
$table->addColumn('timestamp', Type::INTEGER, [
@@ -163,7 +163,7 @@ class Version0009Date20181125061900 extends SimpleMigrationStep {
'length' => 64,
]);
$table->addColumn('vote_option_text', Type::STRING, [
- 'notnull' => false, // maybe true?
+ 'notnull' => false,
'length' => 256,
]);
$table->addColumn('vote_answer', Type::STRING, [
@@ -244,8 +244,6 @@ class Version0009Date20181125061900 extends SimpleMigrationStep {
$insert->insert('polls_options')
->values([
'poll_id' => $insert->createParameter('poll_id'),
- // Decide between one of both
- // 'poll_date' => $insert->createParameter('poll_date'),
'poll_option_text' => $insert->createParameter('poll_option_text'),
]);
$query = $this->connection->getQueryBuilder();
@@ -255,8 +253,6 @@ class Version0009Date20181125061900 extends SimpleMigrationStep {
while ($row = $result->fetch()) {
$insert
->setParameter('poll_id', $row['poll_id'])
- // Decide between one of both
- // ->setParameter('poll_date', $row['dt'])
->setParameter('poll_option_text', date($row['dt']));
$insert->execute();
}
@@ -271,8 +267,6 @@ class Version0009Date20181125061900 extends SimpleMigrationStep {
$insert->insert('polls_options')
->values([
'poll_id' => $insert->createParameter('poll_id'),
- // Decide between one of both
- // 'poll_text' => $insert->createParameter('poll_text'),
'poll_option_text' => $insert->createParameter('poll_option_text'),
]);
$query = $this->connection->getQueryBuilder();
@@ -282,8 +276,6 @@ class Version0009Date20181125061900 extends SimpleMigrationStep {
while ($row = $result->fetch()) {
$insert
->setParameter('poll_id', $row['poll_id'])
- // Decide between one of both
- // ->setParameter('poll_text', $row['text'])
->setParameter('poll_option_text', preg_replace("/_\d*$/", "$1", $row['text']));
$insert->execute();
}