Problemas no mysql
Enviado: 24 Mar 2017, 08:08
por infofran
Olá, companheiros. Estou com erro no mysql que aparece na imagem abaixo:
http://imageshack.com/a/img923/872/xNMEXL.png
O que tenho que acrescentar dentro após criar a tabela oc_paypal_order_transaction ?
Re: Problemas no mysql
Enviado: 24 Mar 2017, 12:37
por valdeir2000
Executa o código abaixo no seu PhpMyAdmin
Código: Selecionar todosALTER TABLE `oc_paypal_order` ADD COLUMN `date_added` datetime;
Re: Problemas no mysql
Enviado: 24 Mar 2017, 13:03
por infofran
valdeir2000 escreveu:Executa o código abaixo no seu PhpMyAdmin Código: Selecionar todosALTER TABLE `oc_paypal_order` ADD COLUMN `date_added` datetime;
Olá, Valdeir. Grato pela resposta. Mas não tenho que criar a tabela oc_paypal_order_transaction ?
Re: Problemas no mysql
Enviado: 24 Mar 2017, 13:12
por valdeir2000
Re: Problemas no mysql
Enviado: 24 Mar 2017, 13:24
por infofran
valdeir2000 escreveu:Vdd. Foi mal. Só tinha lido o primeiro erro.
https://gist.github.com/glaucodiogo/bc0 ... 24f6decbe0
Sem problemas.
O que tenho que acrescentar dentro após criar a tabela oc_paypal_order_transaction ?
Re: Problemas no mysql
Enviado: 24 Mar 2017, 13:30
por infofran
Executo no sql:
CREATE TABLE IF NOT EXISTS `oc_paypal_order_transaction` (
`paypal_order_transaction_id` int(11) NOT NULL AUTO_INCREMENT,
`paypal_order_id` int(11) NOT NULL,
`transaction_id` char(20) NOT NULL,
`parent_id` char(20) NOT NULL,
`date_added` datetime NOT NULL,
`note` varchar(255) NOT NULL,
`msgsubid` char(38) NOT NULL,
`receipt_id` char(20) NOT NULL,
`payment_type` enum('none','echeck','instant','refund','void') DEFAULT NULL,
`payment_status` char(20) NOT NULL,
`pending_reason` char(50) NOT NULL,
`transaction_entity` char(50) NOT NULL,
`amount` decimal(10,2) NOT NULL,
`debug_data` text NOT NULL,
`call_data` text NOT NULL,
PRIMARY KEY (`paypal_order_transaction_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Re: Problemas no mysql
Enviado: 24 Mar 2017, 13:40
por infofran
infofran escreveu:valdeir2000 escreveu:Vdd. Foi mal. Só tinha lido o primeiro erro.
https://gist.github.com/glaucodiogo/bc0 ... 24f6decbe0
Sem problemas.
O que tenho que acrescentar dentro após criar a tabela oc_paypal_order_transaction ?
Deus te abençoe.
Re: Problemas no mysql
Enviado: 24 Mar 2017, 16:36
por infofran
infofran escreveu:valdeir2000 escreveu:Vdd. Foi mal. Só tinha lido o primeiro erro.
https://gist.github.com/glaucodiogo/bc0 ... 24f6decbe0
Sem problemas.
O que tenho que acrescentar dentro após criar a tabela oc_paypal_order_transaction ?
Olá, Valdeir. Agora me aparece este erro na tela da administração da loja:
Notice: Error: Coluna 'ot2.parent_transaction_id' desconhecida em 'where clause'
Error No: 1054
SELECT `ot`.*, (SELECT count(`ot2`.`paypal_order_id`) FROM `oc_paypal_order_transaction` `ot2` WHERE `ot2`.`parent_transaction_id` = `ot`.`transaction_id` ) AS `children` FROM `oc_paypal_order_transaction` `ot` WHERE `paypal_order_id` = '8' in /home/cieprom/www/system/library/db/mysqli.php on line 41Notice: Trying to get property of non-object in /home/cieprom/www/admin/model/payment/pp_express.php on line 141
Re: Problemas no mysql
Enviado: 24 Mar 2017, 19:26
por valdeir2000
Quando faltar uma coluna...
Código: Selecionar todosALTER TABLE `oc_paypal_order_transaction` ADD COLUMN `parent_transaction_id` int(11);
Re: Problemas no mysql
Enviado: 24 Mar 2017, 19:35
por infofran
valdeir2000 escreveu:Quando faltar uma coluna...
Código: Selecionar todosALTER TABLE `oc_paypal_order_transaction` ADD COLUMN `parent_transaction_id` int(11);
Grato pela ajuda.