Completed
Pull Request — development (#755)
by Mirco
04:43
created

Version20190211224434   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 43
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 34 1
A down() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace Application\Migrations;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use Doctrine\Migrations\AbstractMigration;
7
8
/**
9
 * Auto-generated Migration: Please modify to your needs!
10
 */
11
final class Version20190211224434 extends AbstractMigration
12
{
13
    public function up(Schema $schema)
14
    : void {
15
        $this->addSql('UPDATE `sys_menu` SET `href` = `articles.php?page=terms` WHERE id_string = `MNU_START_TOS`;');
16
17
        $this->addSql(
18
            'CREATE TABLE core_hq_message (
19
           id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
20
           start TIMESTAMP NULL,
21
           end TIMESTAMP NULL,
22
           type VARCHAR(50) NULL,
23
           message TEXT NULL
24
           );'
25
        );
26
27
        $this->addSql(
28
            '
29
            INSERT INTO `core_hq_message`
30
            (`start`, `end`, `type`, `message`)
31
        VALUES (
32
            `2019-02-15 00:00:00.0`,
33
            `2019-03-30 00:00:00.0`,
34
            `primary`,
35
            `<p class="lead">Hinweis:</p>
36
            <p style="text-justify: auto">Am <b>15.02.2019</b> haben wir unsere <a href="/article.php?page=terms">Nutzungsbedingungen</a> aktualisiert.
37
            Als Nutzer hat man das Recht, die neuen Nutzungsbedingungen abzulehnen. Dies hat dann zur Folge, das unsere
38
            Dienste nicht mehr genutzt werden können und ggfls. der Account gesperrt oder gelöscht werden kann.<br>
39
            Die Änderungen gelten als akzeptiert, wenn der Nutzer diese nicht innerhalb von 14 Tagen ablehnt und darüber
40
            hinaus das Angebot weiter nutzt. Wenn der Nutzer die Dienste im Rahmen der neuen Fassung der Vereinbarungen
41
            nicht weiter nutzen möchte, kann der Nutzer sein Konto jederzeit kündigen.
42
            Für Fragen steht der Support (<a href="https://opencaching.atlassian.net/servicedesk/customer/portal/2/group/-1" target="_blank" rel="nofollow">Kontakt</a>) und dieser
43
            <a hre="https://blog.opencaching.de/2019/02/aktualisierung-der-nutzungsbedingungen/" target="_blank" rel="nofollow">Blogbeitrag</a> als Erläuterung zur Verfügung.</p>`)
44
            '
45
        );
46
    }
47
48
    public function down(Schema $schema)
49
    : void {
50
        // this down() migration is auto-generated, please modify it to your needs
51
52
    }
53
}
54