Bonjour, je débute sur le développement d'un composant.
Je suis actuellement un tutoriel et j'essaie d'ajouter une table lors de l'installation du composant. Le composant est bien installer mais sa table n'apparait pas en bdd.
Voici le code :
et dans le manifeste :
Pouvez vous me dire ce qui cloche ?
Je suis actuellement un tutoriel et j'essaie d'ajouter une table lors de l'installation du composant. Le composant est bien installer mais sa table n'apparait pas en bdd.
Voici le code :
Code:
-- install.mysql.utf8.sql [COLOR=#569cd6]CREATE[/COLOR][COLOR=#d4d4d4] TABLE IF [/COLOR][COLOR=#dcdcaa]NOT[/COLOR][COLOR=#d4d4d4] EXISTS [/COLOR][COLOR=#ce9178]`#__todolist_items`[/COLOR][COLOR=#d4d4d4] ([/COLOR] [COLOR=#ce9178]`id`[/COLOR][COLOR=#569cd6]int[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]11[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#569cd6]NOT NULL[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`catid`[/COLOR][COLOR=#569cd6]int[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]11[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#569cd6]NULL[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`state`[/COLOR][COLOR=#569cd6]tinyint[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]3[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#b5cea8]1[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`title`[/COLOR][COLOR=#569cd6]varchar[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]255[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#ce9178]''[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`decription`[/COLOR][COLOR=#d4d4d4] mediumint([/COLOR][COLOR=#b5cea8]9[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#569cd6]NULL[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`status`[/COLOR][COLOR=#569cd6]tinyint[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]3[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#b5cea8]0[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`ordering`[/COLOR][COLOR=#569cd6]int[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]11[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#569cd6]NULL[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`created`[/COLOR][COLOR=#d4d4d4] datetime [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#dcdcaa]current_timestamp[/COLOR][COLOR=#d4d4d4](),[/COLOR] [COLOR=#ce9178]`created_by`[/COLOR][COLOR=#569cd6]int[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]11[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#569cd6]NULL[/COLOR][COLOR=#d4d4d4],[/COLOR] [COLOR=#ce9178]`modified`[/COLOR][COLOR=#d4d4d4] datetime [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#dcdcaa]current_timestamp[/COLOR][COLOR=#d4d4d4](),[/COLOR] [COLOR=#ce9178]`modified_by`[/COLOR][COLOR=#569cd6]int[/COLOR][COLOR=#d4d4d4]([/COLOR][COLOR=#b5cea8]11[/COLOR][COLOR=#d4d4d4]) [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#569cd6]NULL[/COLOR] [COLOR=#d4d4d4]) ENGINE=InnoDB [/COLOR][COLOR=#dcdcaa]DEFAULT[/COLOR][COLOR=#dcdcaa]CHARSET[/COLOR][COLOR=#d4d4d4]=utf8 [/COLOR][COLOR=#569cd6]AUTO_INCREMENT[/COLOR][COLOR=#d4d4d4]=[/COLOR][COLOR=#b5cea8]8[/COLOR][COLOR=#d4d4d4];[/COLOR]
Code:
.... [COLOR=#808080]<[/COLOR][COLOR=#569cd6]install[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]<[/COLOR][COLOR=#569cd6]sql[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]<[/COLOR][COLOR=#569cd6]file[/COLOR][COLOR=#9cdcfe]dirver[/COLOR][COLOR=#d4d4d4]=[/COLOR][COLOR=#ce9178]"mysql"[/COLOR][COLOR=#9cdcfe]charset[/COLOR][COLOR=#d4d4d4]=[/COLOR][COLOR=#ce9178]"utf8"[/COLOR][COLOR=#808080]>[/COLOR][COLOR=#d4d4d4]sql/install.mysql.utf8.sql[/COLOR][COLOR=#808080]</[/COLOR][COLOR=#569cd6]file[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]</[/COLOR][COLOR=#569cd6]sql[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]</[/COLOR][COLOR=#569cd6]install[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]<[/COLOR][COLOR=#569cd6]uninstall[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]<[/COLOR][COLOR=#569cd6]sql[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]<[/COLOR][COLOR=#569cd6]file[/COLOR][COLOR=#9cdcfe]dirver[/COLOR][COLOR=#d4d4d4]=[/COLOR][COLOR=#ce9178]"mysql"[/COLOR][COLOR=#9cdcfe]charset[/COLOR][COLOR=#d4d4d4]=[/COLOR][COLOR=#ce9178]"utf8"[/COLOR][COLOR=#808080]>[/COLOR][COLOR=#d4d4d4]sql/uninstall.mysql.utf8.sql[/COLOR][COLOR=#808080]</[/COLOR][COLOR=#569cd6]file[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]</[/COLOR][COLOR=#569cd6]sql[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]</[/COLOR][COLOR=#569cd6]uninstall[/COLOR][COLOR=#808080]>[/COLOR] .... [COLOR=#808080]<[/COLOR][COLOR=#569cd6]administration[/COLOR][COLOR=#808080]>[/COLOR] .... [COLOR=#808080]<[/COLOR][COLOR=#569cd6]files[/COLOR][COLOR=#9cdcfe]folder[/COLOR][COLOR=#d4d4d4]=[/COLOR][COLOR=#ce9178]"admin"[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]<[/COLOR][COLOR=#569cd6]filename[/COLOR][COLOR=#808080]>[/COLOR][COLOR=#d4d4d4]index.html[/COLOR][COLOR=#808080]</[/COLOR][COLOR=#569cd6]filename[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]<[/COLOR][COLOR=#569cd6]filename[/COLOR][COLOR=#808080]>[/COLOR][COLOR=#d4d4d4]todolist.php[/COLOR][COLOR=#808080]</[/COLOR][COLOR=#569cd6]filename[/COLOR][COLOR=#808080]>[/COLOR] ... [COLOR=#808080]<[/COLOR][COLOR=#569cd6]folder[/COLOR][COLOR=#808080]>[/COLOR][COLOR=#d4d4d4]sql[/COLOR][COLOR=#808080]</[/COLOR][COLOR=#569cd6]folder[/COLOR][COLOR=#808080]>[/COLOR] [COLOR=#808080]</[/COLOR][COLOR=#569cd6]files[/COLOR][COLOR=#808080]>[/COLOR] ... </administrator> ...
Commentaire