Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
b45ea754
Commit
b45ea754
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
FIX #5748 Bug: Error updating to 4.0.1 with Postgresql. Field must be
varchar.
parent
cf7327a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/install/mysql/migration/3.9.0-4.0.0.sql
+2
-2
2 additions, 2 deletions
htdocs/install/mysql/migration/3.9.0-4.0.0.sql
htdocs/install/mysql/tables/llx_accounting_account.sql
+1
-1
1 addition, 1 deletion
htdocs/install/mysql/tables/llx_accounting_account.sql
with
3 additions
and
3 deletions
htdocs/install/mysql/migration/3.9.0-4.0.0.sql
+
2
−
2
View file @
b45ea754
...
...
@@ -396,8 +396,8 @@ INSERT INTO llx_c_accounting_category (rowid, code, label, range_account, sens,
INSERT
INTO
llx_c_accounting_category
(
rowid
,
code
,
label
,
range_account
,
sens
,
category_type
,
formula
,
position
,
fk_country
,
active
)
VALUES
(
3
,
'MARGE'
,
"Marge commerciale"
,
''
,
0
,
1
,
'1 + 2'
,
'30'
,
1
,
1
);
UPDATE
llx_accounting_account
SET
account_parent
=
'0'
WHERE
account_parent
=
''
;
-- VMYSQL4.1 ALTER TABLE llx_accounting_account MODIFY COLUMN account_parent
integer
DEFAULT
0
;
-- VPGSQL8.2 ALTER TABLE llx_accounting_account ALTER COLUMN account_parent
TYPE integer USING account_parent::integer
;
-- VMYSQL4.1 ALTER TABLE llx_accounting_account MODIFY COLUMN account_parent
varchar(32)
DEFAULT
'0'
;
-- VPGSQL8.2 ALTER TABLE llx_accounting_account ALTER COLUMN account_parent
SET DEFAULT '0'
;
CREATE
TABLE
llx_accounting_journal
(
...
...
This diff is collapsed.
Click to expand it.
htdocs/install/mysql/tables/llx_accounting_account.sql
+
1
−
1
View file @
b45ea754
...
...
@@ -29,7 +29,7 @@ create table llx_accounting_account
pcg_type
varchar
(
20
)
NOT
NULL
,
pcg_subtype
varchar
(
20
)
NOT
NULL
,
account_number
varchar
(
32
)
NOT
NULL
,
account_parent
varchar
(
32
)
DEFAULT
''
,
-- Hierarchic parent
account_parent
varchar
(
32
)
DEFAULT
'
0
'
,
-- Hierarchic parent
label
varchar
(
255
)
NOT
NULL
,
fk_accounting_category
integer
DEFAULT
0
,
fk_user_author
integer
DEFAULT
NULL
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment