From 0685e6d8f959aeaf464202970bb92ecbd609fd04 Mon Sep 17 00:00:00 2001
From: Alexey Skobkin <x@skobkin.ru>
Date: Thu, 1 Oct 2015 21:45:16 +0300
Subject: [PATCH] Migration fix.

---
 app/DoctrineMigrations/Version20151001210600.php                | 2 +-
 src/Skobkin/Bundle/PointToolsBundle/Entity/Subscription.php     | 2 +-
 .../Bundle/PointToolsBundle/Entity/SubscriptionEvent.php        | 2 +-
 src/Skobkin/Bundle/PointToolsBundle/Entity/User.php             | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/DoctrineMigrations/Version20151001210600.php b/app/DoctrineMigrations/Version20151001210600.php
index db59780..101a533 100644
--- a/app/DoctrineMigrations/Version20151001210600.php
+++ b/app/DoctrineMigrations/Version20151001210600.php
@@ -18,7 +18,7 @@ class Version20151001210600 extends AbstractMigration
         // this up() migration is auto-generated, please modify it to your needs
         $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
 
-        $this->addSql('DROP INDEX uniq_338adfc4aa08cb10');
+        $this->addSql('DROP INDEX users.uniq_338adfc4aa08cb10');
     }
 
     /**
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/Subscription.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/Subscription.php
index 588c5e4..dfd4c31 100644
--- a/src/Skobkin/Bundle/PointToolsBundle/Entity/Subscription.php
+++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/Subscription.php
@@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
 /**
  * Subscription
  *
- * @ORM\Table(name="subscriptions.subscriptions", uniqueConstraints={
+ * @ORM\Table(name="subscriptions.subscriptions", schema="subscriptions", uniqueConstraints={
  *      @ORM\UniqueConstraint(name="subscription_unique", columns={"author_id", "subscriber_id"})}
  * )
  * @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Entity\SubscriptionRepository")
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEvent.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEvent.php
index 1c1c4a2..22c4a4e 100644
--- a/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEvent.php
+++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEvent.php
@@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
 /**
  * SubscriptionEvent
  *
- * @ORM\Table(name="subscriptions.log", indexes={
+ * @ORM\Table(name="subscriptions.log", schema="subscriptions", indexes={
  *      @ORM\Index(name="author_idx", columns={"author_id"}),
  *      @ORM\Index(name="subscriber_idx", columns={"subscriber_id"}),
  *      @ORM\Index(name="date_idx", columns={"date"})
diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php
index f327ea1..2b4dbd5 100644
--- a/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php
+++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/User.php
@@ -8,7 +8,7 @@ use Doctrine\ORM\Mapping as ORM;
 /**
  * User
  *
- * @ORM\Table(name="users.users")
+ * @ORM\Table(name="users.users", schema="users")
  * @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Entity\UserRepository")
  * @ORM\HasLifecycleCallbacks
  */