diff --git a/backend/services/core/migrations/20230810130719_make-product-price-numeric.ts b/backend/services/core/migrations/20230810130719_make-product-price-numeric.ts deleted file mode 100644 index 8350dfd7f..000000000 --- a/backend/services/core/migrations/20230810130719_make-product-price-numeric.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Knex } from 'knex'; - -export async function up(knex: Knex): Promise { - await knex.schema.alterTable('product', (table) => { - table.decimal('price', 8, 2).notNullable().alter(); - }); -} - -export async function down(knex: Knex): Promise { - await knex.schema.alterTable('product', (table) => { - table.integer('price').notNullable().alter(); - }); -} diff --git a/backend/services/core/tests/products/products.spec.ts b/backend/services/core/tests/products/products.spec.ts index 661b6a491..3162d872b 100644 --- a/backend/services/core/tests/products/products.spec.ts +++ b/backend/services/core/tests/products/products.spec.ts @@ -279,7 +279,7 @@ describe('Products API Graphql', () => { productId: data.webshop.createProduct.id, name: 'Updated Coffee', description: 'Updated description', - price: 10.99, + price: 1337, categoryId: categories[0].id, }; const { data: updated, errors } = await client.mutate({ @@ -304,7 +304,7 @@ describe('Products API Graphql', () => { ), name: 'Updated Coffee', description: 'Updated description', - price: 10.99, + price: 1337, }); });