minor errors fixed

parent c1ed8c7e
...@@ -7,7 +7,7 @@ export LANG=en_US.UTF-8 ...@@ -7,7 +7,7 @@ export LANG=en_US.UTF-8
echo "-- Installing build-essentials and g++" echo "-- Installing build-essentials and g++"
sudo apt-get update sudo apt-get update
sudo apt-get install build-essential g++ sudo apt-get install -y build-essential g++
# installing ansible # installing ansible
echo "-- Installing ansible" echo "-- Installing ansible"
......
...@@ -55,7 +55,7 @@ CREATE TABLE `catexp` ( ...@@ -55,7 +55,7 @@ CREATE TABLE `catexp` (
`exp` varchar(30) NOT NULL, `exp` varchar(30) NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `exp` (`exp`,`lang`) UNIQUE KEY `exp` (`exp`,`lang`)
) ENGINE=InnoDB AUTO_INCREMENT=27958 DEFAULT CHARSET=urf8 COMMENT='Stores the expressions available in several languages for a given category (id_cat)'; ) ENGINE=InnoDB AUTO_INCREMENT=27958 DEFAULT CHARSET=utf8 COMMENT='Stores the expressions available in several languages for a given category (id_cat)';
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
......
...@@ -468,7 +468,7 @@ function sqlTypeCast(attr) { ...@@ -468,7 +468,7 @@ function sqlTypeCast(attr) {
break; break;
case 'datetime': case 'datetime':
expandedType = 'DATETIME(3)'; expandedType = 'DATETIME';
break; break;
case 'time': case 'time':
...@@ -499,8 +499,7 @@ function toSqlDate(date) { ...@@ -499,8 +499,7 @@ function toSqlDate(date) {
('00' + date.getDate()).slice(-2) + ' ' + ('00' + date.getDate()).slice(-2) + ' ' +
('00' + date.getHours()).slice(-2) + ':' + ('00' + date.getHours()).slice(-2) + ':' +
('00' + date.getMinutes()).slice(-2) + ':' + ('00' + date.getMinutes()).slice(-2) + ':' +
('00' + date.getSeconds()).slice(-2) + '.' + ('00' + date.getSeconds()).slice(-2);
('00' + date.getMilliseconds()).slice(-3);
return date; return date;
} }
......
...@@ -242,8 +242,7 @@ utils.toSqlDate = function toSqlDate(date) { ...@@ -242,8 +242,7 @@ utils.toSqlDate = function toSqlDate(date) {
('00' + date.getDate()).slice(-2) + ' ' + ('00' + date.getDate()).slice(-2) + ' ' +
('00' + date.getHours()).slice(-2) + ':' + ('00' + date.getHours()).slice(-2) + ':' +
('00' + date.getMinutes()).slice(-2) + ':' + ('00' + date.getMinutes()).slice(-2) + ':' +
('00' + date.getSeconds()).slice(-2) + "." + ('00' + date.getSeconds()).slice(-2);
('00' + date.getMilliseconds()).slice(-3);
return date; return date;
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment