aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations
diff options
context:
space:
mode:
Diffstat (limited to 'app/DoctrineMigrations')
-rw-r--r--app/DoctrineMigrations/Version20170405182620.php7
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;
8use Symfony\Component\DependencyInjection\ContainerInterface; 8use 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 */
13class Version20170405182620 extends AbstractMigration implements ContainerAwareInterface 13class 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}