Bonsoir,
Je suis en train d'installer une contribution sur un logiciel libre. Je bute par contre sur la table associée.
Voici déjà les tables:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
alter table products
add column products_price1 decimal(15,4) not null default 0.0,
add column products_price2 decimal(15,4) not null default 0.0,
add column products_price3 decimal(15,4) not null default 0.0,
add column products_price4 decimal(15,4) not null default 0.0,
add column products_price5 decimal(15,4) not null default 0.0,
add column products_price6 decimal(15,4) not null default 0.0,
add column products_price7 decimal(15,4) not null default 0.0,
add column products_price8 decimal(15,4) not null default 0.0,
add column products_price1_qty int not null default 0,
add column products_price2_qty int not null default 0,
add column products_price3_qty int not null default 0,
add column products_price4_qty int not null default 0,
add column products_price5_qty int not null default 0,
add column products_price6_qty int not null default 0,
add column products_price7_qty int not null default 0,
add column products_price8_qty int not null default 0,
add column products_qty_blocks int not null default 1;
 
alter table products_groups
add column products_price1 decimal(15,4) not null default 0.0,
add column products_price2 decimal(15,4) not null default 0.0,
add column products_price3 decimal(15,4) not null default 0.0,
add column products_price4 decimal(15,4) not null default 0.0,
add column products_price5 decimal(15,4) not null default 0.0,
add column products_price6 decimal(15,4) not null default 0.0,
add column products_price7 decimal(15,4) not null default 0.0,
add column products_price8 decimal(15,4) not null default 0.0,
add column products_price1_qty int not null default 0,
add column products_price2_qty int not null default 0,
add column products_price3_qty int not null default 0,
add column products_price4_qty int not null default 0,
add column products_price5_qty int not null default 0,
add column products_price6_qty int not null default 0,
add column products_price7_qty int not null default 0,
add column products_price8_qty int not null default 0,
add column products_qty_blocks int not null default 1;
Et voici les 2 messages d'erreur (j'ais essayé de l'installer pas à pas)
Tout d'abord pour la table products
#1064 - Erreur de syntaxe près de 'default0.0,
ADD COLUMN products_price2 decimal( 15, 4 ) NOT ' à la ligne 1
et ensuite pour la table products group
ALTER TABLE products_groups

MySQL a répondu:


#1146 - La table 'casierbois.products_groups' n'existe pas
Comment pourrais je régler ce problème vu que je débutes en mysql

Merci d'avance