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
67fc6de8
Commit
67fc6de8
authored
10 years ago
by
Phf
Browse files
Options
Downloads
Patches
Plain Diff
[CORE] local phpunit - retrait des mauvais caractères et type des colonnes (#new_ask_price).
parent
ffecdc13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/install/mysql/migration/3.7.0-3.8.0.sql
+99
-99
99 additions, 99 deletions
htdocs/install/mysql/migration/3.7.0-3.8.0.sql
with
99 additions
and
99 deletions
htdocs/install/mysql/migration/3.7.0-3.8.0.sql
+
99
−
99
View file @
67fc6de8
...
...
@@ -103,110 +103,110 @@ ALTER TABLE llx_contratdet_extrafields ADD INDEX idx_contratdet_extrafields (fk_
ALTER
TABLE
llx_product_fournisseur_price
ADD
COLUMN
delivery_time_days
integer
;
-- Module AskPriceSupplier --
CREATE
TABLE
`
llx_askpricesupplier
`
(
`
rowid
`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`
ref
`
varchar
(
30
)
NOT
NULL
,
`
entity
`
int
(
11
)
NOT
NULL
DEFAULT
'1'
,
`
ref_ext
`
varchar
(
255
)
DEFAULT
NULL
,
`
ref_int
`
varchar
(
255
)
DEFAULT
NULL
,
`
fk_soc
`
int
(
11
)
DEFAULT
NULL
,
`
fk_projet
`
int
(
11
)
DEFAULT
NULL
,
`
tms
`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`
datec
`
datetime
DEFAULT
NULL
,
`
date_valid
`
datetime
DEFAULT
NULL
,
`
date_cloture
`
datetime
DEFAULT
NULL
,
`
fk_user_author
`
int
(
11
)
DEFAULT
NULL
,
`
fk_user_modif
`
int
(
11
)
DEFAULT
NULL
,
`
fk_user_valid
`
int
(
11
)
DEFAULT
NULL
,
`
fk_user_cloture
`
int
(
11
)
DEFAULT
NULL
,
`
fk_statut
`
smallint
(
6
)
NOT
NULL
DEFAULT
'0'
,
`
price
`
double
DEFAULT
'0'
,
`
remise_percent
`
double
DEFAULT
'0'
,
`
remise_absolue
`
double
DEFAULT
'0'
,
`
remise
`
double
DEFAULT
'0'
,
`
total_ht
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
tva
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
localtax1
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
localtax2
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
total
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
fk_account
`
int
(
11
)
DEFAULT
NULL
,
`
fk_currency
`
varchar
(
3
)
DEFAULT
NULL
,
`
fk_cond_reglement
`
int
(
11
)
DEFAULT
NULL
,
`
fk_mode_reglement
`
int
(
11
)
DEFAULT
NULL
,
`
note_private
`
text
,
`
note_public
`
text
,
`
model_pdf
`
varchar
(
255
)
DEFAULT
NULL
,
`
date_livraison
`
date
DEFAULT
NULL
,
`
fk_shipping_method
`
int
(
11
)
DEFAULT
NULL
,
`
import_key
`
varchar
(
14
)
DEFAULT
NULL
,
`
extraparams
`
varchar
(
255
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`
rowid
`
),
UNIQUE
KEY
`
uk_askpricesupplier_ref
`
(
`
ref
`
,
`
entity
`
),
KEY
`
idx_askpricesupplier_fk_soc
`
(
`
fk_soc
`
),
KEY
`
idx_askpricesupplier_fk_user_author
`
(
`
fk_user_author
`
),
KEY
`
idx_askpricesupplier_fk_user_valid
`
(
`
fk_user_valid
`
),
KEY
`
idx_askpricesupplier_fk_user_cloture
`
(
`
fk_user_cloture
`
),
KEY
`
idx_askpricesupplier_fk_projet
`
(
`
fk_projet
`
),
KEY
`
idx_askpricesupplier_fk_account
`
(
`
fk_account
`
),
KEY
`
idx_askpricesupplier_fk_currency
`
(
`
fk_currency
`
),
CONSTRAINT
`
fk_askpricesupplier_fk_projet
`
FOREIGN
KEY
(
`
fk_projet
`
)
REFERENCES
`
llx_projet
`
(
`
rowid
`
),
CONSTRAINT
`
fk_askpricesupplier_fk_soc
`
FOREIGN
KEY
(
`
fk_soc
`
)
REFERENCES
`
llx_societe
`
(
`
rowid
`
),
CONSTRAINT
`
fk_askpricesupplier_fk_user_author
`
FOREIGN
KEY
(
`
fk_user_author
`
)
REFERENCES
`
llx_user
`
(
`
rowid
`
),
CONSTRAINT
`
fk_askpricesupplier_fk_user_cloture
`
FOREIGN
KEY
(
`
fk_user_cloture
`
)
REFERENCES
`
llx_user
`
(
`
rowid
`
),
CONSTRAINT
`
fk_askpricesupplier_fk_user_valid
`
FOREIGN
KEY
(
`
fk_user_valid
`
)
REFERENCES
`
llx_user
`
(
`
rowid
`
)
CREATE
TABLE
llx_askpricesupplier
(
rowid
int
eger
NOT
NULL
AUTO_INCREMENT
,
ref
varchar
(
30
)
NOT
NULL
,
entity
int
eger
NOT
NULL
DEFAULT
'1'
,
ref_ext
varchar
(
255
)
DEFAULT
NULL
,
ref_int
varchar
(
255
)
DEFAULT
NULL
,
fk_soc
int
eger
DEFAULT
NULL
,
fk_projet
int
eger
DEFAULT
NULL
,
tms
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
datec
datetime
DEFAULT
NULL
,
date_valid
datetime
DEFAULT
NULL
,
date_cloture
datetime
DEFAULT
NULL
,
fk_user_author
int
eger
DEFAULT
NULL
,
fk_user_modif
int
eger
DEFAULT
NULL
,
fk_user_valid
int
eger
DEFAULT
NULL
,
fk_user_cloture
int
eger
DEFAULT
NULL
,
fk_statut
smallint
NOT
NULL
DEFAULT
'0'
,
price
double
DEFAULT
'0'
,
remise_percent
double
DEFAULT
'0'
,
remise_absolue
double
DEFAULT
'0'
,
remise
double
DEFAULT
'0'
,
total_ht
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
tva
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
localtax1
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
localtax2
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
total
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
fk_account
int
eger
DEFAULT
NULL
,
fk_currency
varchar
(
3
)
DEFAULT
NULL
,
fk_cond_reglement
int
eger
DEFAULT
NULL
,
fk_mode_reglement
int
eger
DEFAULT
NULL
,
note_private
text
,
note_public
text
,
model_pdf
varchar
(
255
)
DEFAULT
NULL
,
date_livraison
date
DEFAULT
NULL
,
fk_shipping_method
int
eger
DEFAULT
NULL
,
import_key
varchar
(
14
)
DEFAULT
NULL
,
extraparams
varchar
(
255
)
DEFAULT
NULL
,
PRIMARY
KEY
(
rowid
),
UNIQUE
KEY
uk_askpricesupplier_ref
(
ref
,
entity
),
KEY
idx_askpricesupplier_fk_soc
(
fk_soc
),
KEY
idx_askpricesupplier_fk_user_author
(
fk_user_author
),
KEY
idx_askpricesupplier_fk_user_valid
(
fk_user_valid
),
KEY
idx_askpricesupplier_fk_user_cloture
(
fk_user_cloture
),
KEY
idx_askpricesupplier_fk_projet
(
fk_projet
),
KEY
idx_askpricesupplier_fk_account
(
fk_account
),
KEY
idx_askpricesupplier_fk_currency
(
fk_currency
),
CONSTRAINT
fk_askpricesupplier_fk_projet
FOREIGN
KEY
(
fk_projet
)
REFERENCES
llx_projet
(
rowid
),
CONSTRAINT
fk_askpricesupplier_fk_soc
FOREIGN
KEY
(
fk_soc
)
REFERENCES
llx_societe
(
rowid
),
CONSTRAINT
fk_askpricesupplier_fk_user_author
FOREIGN
KEY
(
fk_user_author
)
REFERENCES
llx_user
(
rowid
),
CONSTRAINT
fk_askpricesupplier_fk_user_cloture
FOREIGN
KEY
(
fk_user_cloture
)
REFERENCES
llx_user
(
rowid
),
CONSTRAINT
fk_askpricesupplier_fk_user_valid
FOREIGN
KEY
(
fk_user_valid
)
REFERENCES
llx_user
(
rowid
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`
llx_askpricesupplierdet
`
(
`
rowid
`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`
fk_askpricesupplier
`
int
(
11
)
NOT
NULL
,
`
fk_parent_line
`
int
(
11
)
DEFAULT
NULL
,
`
fk_product
`
int
(
11
)
DEFAULT
NULL
,
`
label
`
varchar
(
255
)
DEFAULT
NULL
,
`
description
`
text
,
`
fk_remise_except
`
int
(
11
)
DEFAULT
NULL
,
`
tva_tx
`
double
(
6
,
3
)
DEFAULT
'0.000'
,
`
localtax1_tx
`
double
(
6
,
3
)
DEFAULT
'0.000'
,
`
localtax1_type
`
varchar
(
10
)
DEFAULT
NULL
,
`
localtax2_tx
`
double
(
6
,
3
)
DEFAULT
'0.000'
,
`
localtax2_type
`
varchar
(
10
)
DEFAULT
NULL
,
`
qty
`
double
DEFAULT
NULL
,
`
remise_percent
`
double
DEFAULT
'0'
,
`
remise
`
double
DEFAULT
'0'
,
`
price
`
double
DEFAULT
NULL
,
`
subprice
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
total_ht
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
total_tva
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
total_localtax1
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
total_localtax2
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
total_ttc
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
product_type
`
int
(
11
)
DEFAULT
'0'
,
`
info_bits
`
int
(
11
)
DEFAULT
'0'
,
`
buy_price_ht
`
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
`
fk_product_fournisseur_price
`
int
(
11
)
DEFAULT
NULL
,
`
special_code
`
int
(
11
)
DEFAULT
'0'
,
`
rang
`
int
(
11
)
DEFAULT
'0'
,
`
ref_fourn
`
varchar
(
30
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`
rowid
`
),
KEY
`
idx_askpricesupplierdet_fk_askpricesupplierdet
`
(
`
fk_askpricesupplier
`
),
KEY
`
idx_askpricesupplierdet_fk_product
`
(
`
fk_product
`
),
CONSTRAINT
`
fk_askpricesupplierdet_fk_askpricesupplier
`
FOREIGN
KEY
(
`
fk_askpricesupplier
`
)
REFERENCES
`
llx_askpricesupplier
`
(
`
rowid
`
)
CREATE
TABLE
llx_askpricesupplierdet
(
rowid
int
eger
NOT
NULL
AUTO_INCREMENT
,
fk_askpricesupplier
int
eger
NOT
NULL
,
fk_parent_line
int
eger
DEFAULT
NULL
,
fk_product
int
eger
DEFAULT
NULL
,
label
varchar
(
255
)
DEFAULT
NULL
,
description
text
,
fk_remise_except
int
eger
DEFAULT
NULL
,
tva_tx
double
(
6
,
3
)
DEFAULT
'0.000'
,
localtax1_tx
double
(
6
,
3
)
DEFAULT
'0.000'
,
localtax1_type
varchar
(
10
)
DEFAULT
NULL
,
localtax2_tx
double
(
6
,
3
)
DEFAULT
'0.000'
,
localtax2_type
varchar
(
10
)
DEFAULT
NULL
,
qty
double
DEFAULT
NULL
,
remise_percent
double
DEFAULT
'0'
,
remise
double
DEFAULT
'0'
,
price
double
DEFAULT
NULL
,
subprice
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
total_ht
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
total_tva
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
total_localtax1
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
total_localtax2
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
total_ttc
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
product_type
int
eger
DEFAULT
'0'
,
info_bits
int
eger
DEFAULT
'0'
,
buy_price_ht
double
(
24
,
8
)
DEFAULT
'0.00000000'
,
fk_product_fournisseur_price
int
eger
DEFAULT
NULL
,
special_code
int
eger
DEFAULT
'0'
,
rang
int
eger
DEFAULT
'0'
,
ref_fourn
varchar
(
30
)
DEFAULT
NULL
,
PRIMARY
KEY
(
rowid
),
KEY
idx_askpricesupplierdet_fk_askpricesupplierdet
(
fk_askpricesupplier
),
KEY
idx_askpricesupplierdet_fk_product
(
fk_product
),
CONSTRAINT
fk_askpricesupplierdet_fk_askpricesupplier
FOREIGN
KEY
(
fk_askpricesupplier
)
REFERENCES
llx_askpricesupplier
(
rowid
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`
llx_askpricesupplier_extrafields
`
(
`
rowid
`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`
tms
`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`
fk_object
`
int
(
11
)
NOT
NULL
,
`
import_key
`
varchar
(
14
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`
rowid
`
),
KEY
`
idx_askpricesupplier_extrafields
`
(
`
fk_object
`
)
CREATE
TABLE
llx_askpricesupplier_extrafields
(
rowid
int
eger
NOT
NULL
AUTO_INCREMENT
,
tms
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
fk_object
int
eger
NOT
NULL
,
import_key
varchar
(
14
)
DEFAULT
NULL
,
PRIMARY
KEY
(
rowid
),
KEY
idx_askpricesupplier_extrafields
(
fk_object
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`
llx_askpricesupplierdet_extrafields
`
(
`
rowid
`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`
tms
`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`
fk_object
`
int
(
11
)
NOT
NULL
,
`
import_key
`
varchar
(
14
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`
rowid
`
),
KEY
`
idx_askpricesupplierdet_extrafields
`
(
`
fk_object
`
)
CREATE
TABLE
llx_askpricesupplierdet_extrafields
(
rowid
int
eger
NOT
NULL
AUTO_INCREMENT
,
tms
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
fk_object
int
eger
NOT
NULL
,
import_key
varchar
(
14
)
DEFAULT
NULL
,
PRIMARY
KEY
(
rowid
),
KEY
idx_askpricesupplierdet_extrafields
(
fk_object
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
-- End Module AskPriceSupplier --
\ No newline at end of file
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