mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
fix: invalid database migration
This commit is contained in:
parent
faa07c1297
commit
9ba47a560c
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ export class OptimizeDBIndices0000000000008 implements MigrationInterface {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// handled by Primary Key on (albumId, artistId)
|
// handled by Primary Key on (albumId, artistId)
|
||||||
await queryRunner.dropIndex("album_artist", "IDX_ALBUM_ARTISTS_ALBUM_ID");
|
await queryRunner.dropIndex("album_artists", "IDX_ALBUM_ARTISTS_ALBUM_ID");
|
||||||
|
|
||||||
// handled by Primary Key on (artistId, genreId)
|
// handled by Primary Key on (artistId, genreId)
|
||||||
await queryRunner.dropIndex("artist_genres", "IDX_ARTIST_GENRES_ARTIST_ID");
|
await queryRunner.dropIndex("artist_genres", "IDX_ARTIST_GENRES_ARTIST_ID");
|
||||||
|
|
@ -34,7 +34,7 @@ export class OptimizeDBIndices0000000000008 implements MigrationInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
async down(queryRunner: QueryRunner): Promise<void> {
|
async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
await queryRunner.createIndices("album_artist", [
|
await queryRunner.createIndices("album_artists", [
|
||||||
new TableIndex({
|
new TableIndex({
|
||||||
name: "IDX_ALBUM_ARTISTS_ALBUM_ID",
|
name: "IDX_ALBUM_ARTISTS_ALBUM_ID",
|
||||||
columnNames: ["albumId"],
|
columnNames: ["albumId"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue