mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Stop using ContainerAwareInterface in migrations
This commit is contained in:
parent
bcf0f2f52c
commit
e715da7e91
19 changed files with 83 additions and 66 deletions
|
@ -12,9 +12,7 @@ class Version20170327194233 extends WallabagMigration
|
|||
{
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$scuttle = $this->container
|
||||
->get('doctrine.orm.default_entity_manager')
|
||||
->getConnection()
|
||||
$scuttle = $this->connection
|
||||
->fetchOne('SELECT * FROM ' . $this->getTable('craue_config_setting') . " WHERE name = 'share_scuttle'");
|
||||
|
||||
$this->skipIf(false !== $scuttle, 'It seems that you already played this migration.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue