Skip to content

Commit 1657d72

Browse files
committed
Fixed SQL
1 parent a1488b4 commit 1657d72

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/pim/create_custom_attribute_type.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,12 @@ The values are going to be stored within a table named `app_product_specificatio
127127
=== "MySQL"
128128

129129
``` sql
130-
CREATE TABLE app_product_specification_attribute_percent (id INT NOT NULL, value DOUBLE PRECISION DEFAULT NULL, INDEX app_product_specification_attribute_percent_value_idx (value), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB;
131-
ALTER TABLE app_product_specification_attribute_percent ADD CONSTRAINT app_product_specification_attribute_percent_fk FOREIGN KEY (id) REFERENCES ibexa_product_specification_attribute (id) ON UPDATE CASCADE ON DELETE CASCADE;
130+
CREATE TABLE app_product_specification_attribute_percent (
131+
id INT NOT NULL,
132+
value DOUBLE PRECISION DEFAULT NULL,
133+
INDEX app_product_specification_attribute_percent_value_idx (value),
134+
PRIMARY KEY (id)
135+
) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB;
132136
```
133137

134138
=== "PostgreSQL"

0 commit comments

Comments
 (0)