Skip to content

Commit

Permalink
Consistent table name
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Mar 4, 2024
1 parent 38f6070 commit 78ce077
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions migrations/Version20240304212343.php
@@ -0,0 +1,29 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240304212343 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE watched_user RENAME TO watched_users');
}

public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE watched_users RENAME TO watched_user');
}
}
1 change: 1 addition & 0 deletions src/Entity/WatchedUser.php
Expand Up @@ -6,6 +6,7 @@
use App\Repository\WatchedUserRepository;
use Doctrine\ORM\Mapping as ORM;

#[ORM\Table(name: 'watched_users')]
#[ORM\Entity(repositoryClass: WatchedUserRepository::class)]
class WatchedUser implements ResolvableUserEntity
{
Expand Down

0 comments on commit 78ce077

Please sign in to comment.