Skip to content

Commit

Permalink
add default
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl committed Dec 18, 2024
1 parent 1586866 commit e5feb06
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@
"autoincrement": false,
"primary": false,
"nullable": false,
"default": "false",
"mappedType": "boolean"
},
"compare_at_unit_price": {
Expand Down
15 changes: 0 additions & 15 deletions packages/modules/cart/src/migrations/Migration20241125130058.ts

This file was deleted.

13 changes: 13 additions & 0 deletions packages/modules/cart/src/migrations/Migration20241218091938.ts
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";');
}

}

0 comments on commit e5feb06

Please sign in to comment.