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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
20141ec9
Commit
20141ec9
authored
Sep 12, 2016
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix default value of new table
parent
34c19f9c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/install/mysql/migration/3.9.0-4.0.0.sql
+5
-1
5 additions, 1 deletion
htdocs/install/mysql/migration/3.9.0-4.0.0.sql
with
5 additions
and
1 deletion
htdocs/install/mysql/migration/3.9.0-4.0.0.sql
+
5
−
1
View file @
20141ec9
...
@@ -47,7 +47,7 @@ DELETE FROM llx_user_param where param = 'MAIN_THEME' and value in ('auguria', '
...
@@ -47,7 +47,7 @@ DELETE FROM llx_user_param where param = 'MAIN_THEME' and value in ('auguria', '
-- DROP TABLE llx_product_lot;
-- DROP TABLE llx_product_lot;
CREATE
TABLE
llx_product_lot
(
CREATE
TABLE
llx_product_lot
(
rowid
integer
AUTO_INCREMENT
PRIMARY
KEY
,
rowid
integer
AUTO_INCREMENT
PRIMARY
KEY
,
entity
integer
,
entity
integer
DEFAULT
1
,
fk_product
integer
NOT
NULL
,
-- Id of product
fk_product
integer
NOT
NULL
,
-- Id of product
batch
varchar
(
30
)
DEFAULT
NULL
,
-- Lot or serial number
batch
varchar
(
30
)
DEFAULT
NULL
,
-- Lot or serial number
eatby
date
DEFAULT
NULL
,
-- Eatby date
eatby
date
DEFAULT
NULL
,
-- Eatby date
...
@@ -61,6 +61,10 @@ CREATE TABLE llx_product_lot (
...
@@ -61,6 +61,10 @@ CREATE TABLE llx_product_lot (
ALTER
TABLE
llx_product_lot
ADD
UNIQUE
INDEX
uk_product_lot
(
fk_product
,
batch
);
ALTER
TABLE
llx_product_lot
ADD
UNIQUE
INDEX
uk_product_lot
(
fk_product
,
batch
);
-- VPGSQL8.2 ALTER TABLE llx_product_lot ALTER COLUMN entity SET DEFAULT 1;
ALTER
TABLE
llx_product_lot
MODIFY
COLUMN
entity
integer
DEFAULT
1
;
UPDATE
llx_product_lot
SET
entity
=
1
WHERE
entity
IS
NULL
;
DROP
TABLE
llx_stock_serial
;
DROP
TABLE
llx_stock_serial
;
ALTER
TABLE
llx_product
ADD
COLUMN
note_public
text
;
ALTER
TABLE
llx_product
ADD
COLUMN
note_public
text
;
...
...
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