Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (25 sloc) 893 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<beans>
<bean id="createDtmfStatement" class="PDOStatement" scope="prototype"
factory-bean="pdoMysql" factory-method="prepare">
<constructor-arg><value>
CREATE TABLE IF NOT EXISTS `${mysql.table.dtmf}` (
`uniqueid` varchar(32) NOT NULL,
`dtmf` TEXT NOT NULL,
`channel` varchar(64) NOT NULL,
`created` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`uniqueid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
</value></constructor-arg>
</bean>
<bean id="insertDtmfStatement" class="PDOStatement" scope="prototype"
factory-bean="pdoMysql" factory-method="prepare">
<constructor-arg><value>
INSERT INTO `${mysql.table.dtmf}` (
`uniqueid`, `dtmf`, `channel`
) VALUES(
:uniqueid, :dtmf, :channel
) ON DUPLICATE KEY UPDATE `dtmf`=CONCAT(`dtmf`,:dtmf);
</value></constructor-arg>
</bean>
</beans>