Skip to content

Commit 5969636

Browse files
committed
index name
1 parent 1fb7786 commit 5969636

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

migrations/Version20260409090433.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ public function down(Schema $schema): void
123123
$this->addSql(<<<'SQL'
124124
ALTER TABLE package_installations ADD PRIMARY KEY (package_id)
125125
SQL);
126+
$this->addSql(<<<'SQL'
127+
ALTER INDEX package_installations_pkey RENAME TO package_downloads_pkey
128+
SQL);
126129

127130
$this->addSql(<<<'SQL'
128131
ALTER TABLE version_installations ADD version_id INT DEFAULT NULL
@@ -158,5 +161,8 @@ public function down(Schema $schema): void
158161
$this->addSql(<<<'SQL'
159162
ALTER TABLE version_installations ADD PRIMARY KEY (version_id)
160163
SQL);
164+
$this->addSql(<<<'SQL'
165+
ALTER INDEX version_installations_pkey RENAME TO version_downloads_pkey
166+
SQL);
161167
}
162168
}

0 commit comments

Comments
 (0)