-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1586866
commit e5feb06
Showing
3 changed files
with
14 additions
and
15 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
15 changes: 0 additions & 15 deletions
15
packages/modules/cart/src/migrations/Migration20241125130058.ts
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
packages/modules/cart/src/migrations/Migration20241218091938.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,13 @@ | ||
import { Migration } from '@mikro-orm/migrations'; | ||
|
||
export class Migration20241218091938 extends Migration { | ||
|
||
async up(): Promise<void> { | ||
this.addSql('alter table if exists "cart_line_item" add column if not exists "is_custom_price" boolean not null default false;'); | ||
} | ||
|
||
async down(): Promise<void> { | ||
this.addSql('alter table if exists "cart_line_item" drop column if exists "is_custom_price";'); | ||
} | ||
|
||
} |