diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-06 09:36:20 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-09 15:24:51 +0200 |
commit | 7b0b3622ab2dd909028481b294c91f88a5682671 (patch) | |
tree | cf9a9b432a8f123b8cf7400e387ba3113e8c8cc4 /app/DoctrineMigrations/Version20170405182620.php | |
parent | 5e9009ce86a366001616fad5b28cb59dc20ee4df (diff) | |
download | wallabag-7b0b3622ab2dd909028481b294c91f88a5682671.tar.gz wallabag-7b0b3622ab2dd909028481b294c91f88a5682671.tar.zst wallabag-7b0b3622ab2dd909028481b294c91f88a5682671.zip |
Added author of article
Diffstat (limited to 'app/DoctrineMigrations/Version20170405182620.php')
-rw-r--r-- | app/DoctrineMigrations/Version20170405182620.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/DoctrineMigrations/Version20170405182620.php b/app/DoctrineMigrations/Version20170405182620.php index 1e020c17..c1ae7df9 100644 --- a/app/DoctrineMigrations/Version20170405182620.php +++ b/app/DoctrineMigrations/Version20170405182620.php | |||
@@ -8,7 +8,7 @@ use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |||
8 | use Symfony\Component\DependencyInjection\ContainerInterface; | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * Add published_at in `entry` table. | 11 | * Add published_at and published_by in `entry` table. |
12 | */ | 12 | */ |
13 | class Version20170405182620 extends AbstractMigration implements ContainerAwareInterface | 13 | class Version20170405182620 extends AbstractMigration implements ContainerAwareInterface |
14 | { | 14 | { |
@@ -39,6 +39,10 @@ class Version20170405182620 extends AbstractMigration implements ContainerAwareI | |||
39 | $entryTable->addColumn('published_at', 'datetime', [ | 39 | $entryTable->addColumn('published_at', 'datetime', [ |
40 | 'notnull' => false, | 40 | 'notnull' => false, |
41 | ]); | 41 | ]); |
42 | |||
43 | $entryTable->addColumn('published_by', 'text', [ | ||
44 | 'notnull' => false, | ||
45 | ]); | ||
42 | } | 46 | } |
43 | 47 | ||
44 | /** | 48 | /** |
@@ -51,5 +55,6 @@ class Version20170405182620 extends AbstractMigration implements ContainerAwareI | |||
51 | $this->skipIf(!$entryTable->hasColumn('published_at'), 'It seems that you already played this migration.'); | 55 | $this->skipIf(!$entryTable->hasColumn('published_at'), 'It seems that you already played this migration.'); |
52 | 56 | ||
53 | $entryTable->dropColumn('published_at'); | 57 | $entryTable->dropColumn('published_at'); |
58 | $entryTable->dropColumn('published_by'); | ||
54 | } | 59 | } |
55 | } | 60 | } |