From 140c8b5395a3e615a45835d1cd20d508a59ddebc Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 4 Feb 2021 21:33:10 +1100 Subject: [PATCH] Use integer field instead of boolean literal (not correct SQL) --- InvenTree/company/migrations/0019_auto_20200413_0642.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/company/migrations/0019_auto_20200413_0642.py b/InvenTree/company/migrations/0019_auto_20200413_0642.py index 1e1bcda922..8a7f3d5945 100644 --- a/InvenTree/company/migrations/0019_auto_20200413_0642.py +++ b/InvenTree/company/migrations/0019_auto_20200413_0642.py @@ -167,7 +167,7 @@ def associate_manufacturers(apps, schema_editor): # Manually create a new database row # Note: Have to fill out all empty string values! - new_manufacturer_query = f"insert into company_company (name, description, is_customer, is_supplier, is_manufacturer, address, website, phone, email, contact, link, notes) values ('{company_name}', '{company_name}', false, false, true, '', '', '', '', '', '', '');" + new_manufacturer_query = f"insert into company_company (name, description, is_customer, is_supplier, is_manufacturer, address, website, phone, email, contact, link, notes) values ('{company_name}', '{company_name}', 0, 0, 1, '', '', '', '', '', '', '');" cursor = connection.cursor()