Migration fix.
This commit is contained in:
parent
a60bce3b23
commit
0685e6d8f9
|
@ -18,7 +18,7 @@ class Version20151001210600 extends AbstractMigration
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
// 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->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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* Subscription
|
* 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\UniqueConstraint(name="subscription_unique", columns={"author_id", "subscriber_id"})}
|
||||||
* )
|
* )
|
||||||
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Entity\SubscriptionRepository")
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Entity\SubscriptionRepository")
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* SubscriptionEvent
|
* 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="author_idx", columns={"author_id"}),
|
||||||
* @ORM\Index(name="subscriber_idx", columns={"subscriber_id"}),
|
* @ORM\Index(name="subscriber_idx", columns={"subscriber_id"}),
|
||||||
* @ORM\Index(name="date_idx", columns={"date"})
|
* @ORM\Index(name="date_idx", columns={"date"})
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*
|
*
|
||||||
* @ORM\Table(name="users.users")
|
* @ORM\Table(name="users.users", schema="users")
|
||||||
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Entity\UserRepository")
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Entity\UserRepository")
|
||||||
* @ORM\HasLifecycleCallbacks
|
* @ORM\HasLifecycleCallbacks
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue