-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
--------- Co-authored-by: Uwe Ilgenstein <[email protected]>
- Loading branch information
1 parent
fcff2b9
commit e50d2b4
Showing
450 changed files
with
10,482 additions
and
16,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/server/src/migrations/mikro-orm/Migration20240415124640.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/server/src/migrations/mikro-orm/Migration20240517135008.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
apps/server/src/migrations/mikro-orm/Migration20240528140356.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Migration } from '@mikro-orm/migrations-mongodb'; | ||
|
||
export class Migration20240528140356 extends Migration { | ||
async up(): Promise<void> { | ||
const mediaBoards = await this.driver.nativeUpdate( | ||
'boardnodes', | ||
{ type: 'media-board' }, | ||
{ | ||
$rename: { mediaAvailableLineBackgroundColor: 'backgroundColor', mediaAvailableLineCollapsed: 'collapsed' }, | ||
} | ||
); | ||
|
||
if (mediaBoards.affectedRows > 0) { | ||
console.info(`Additional attributes added to ${mediaBoards.affectedRows} Media boards`); | ||
} | ||
} | ||
|
||
async down(): Promise<void> { | ||
const mediaBoards = await this.driver.nativeUpdate( | ||
'boardnodes', | ||
{ type: 'media-board' }, | ||
{ | ||
$rename: { backgroundColor: 'mediaAvailableLineBackgroundColor', collapsed: 'mediaAvailableLineCollapsed' }, | ||
} | ||
); | ||
|
||
if (mediaBoards.affectedRows > 0) { | ||
console.info(`Additional attributes removed from ${mediaBoards.affectedRows} Media boards`); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.