fix: if field is boolean in filedsarray, it bus be boolean as datatype fog PgSQL (#26335)

This commit is contained in:
HENRY Florian
2023-10-26 13:37:21 +02:00
committed by GitHub
parent 753430de5f
commit 3fc0b88633
2 changed files with 4 additions and 4 deletions

View File

@@ -43,13 +43,13 @@ CREATE TABLE llx_asset(
acquisition_type smallint DEFAULT 0 NOT NULL,
asset_type smallint DEFAULT 0 NOT NULL,
not_depreciated integer DEFAULT 0,
not_depreciated boolean DEFAULT false,
disposal_date date,
disposal_amount_ht double(24,8),
fk_disposal_type integer,
disposal_depreciated integer DEFAULT 0,
disposal_subject_to_vat integer DEFAULT 0,
disposal_depreciated boolean DEFAULT false,
disposal_subject_to_vat boolean DEFAULT false,
note_public text,
note_private text,

View File

@@ -27,7 +27,7 @@ CREATE TABLE llx_asset_depreciation_options_economic(
fk_asset_model integer,
depreciation_type smallint DEFAULT 0 NOT NULL, -- 0:linear, 1:degressive, 2:exceptional
accelerated_depreciation_option integer, -- activate accelerated depreciation mode (fiscal)
accelerated_depreciation_option boolean DEFAULT false, -- activate accelerated depreciation mode (fiscal)
degressive_coefficient double(24,8),
duration smallint NOT NULL,
duration_type smallint DEFAULT 0 NOT NULL, -- 0:annual, 1:monthly, 2:daily