Skip to content
Snippets Groups Projects
Commit aab4800f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: sql syntax error with pgsql

parent bb3632e9
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -25,6 +25,6 @@ create table llx_accountingaccount
pcg_subtype varchar(20) NOT NULL,
account_number varchar(20) NOT NULL,
account_parent varchar(20),
label varchar(128) NOT NULL,
label varchar(255) NOT NULL,
active tinyint DEFAULT 1 NOT NULL
)ENGINE=innodb;
......@@ -16,12 +16,12 @@
--
-- ============================================================================
CREATE TABLE llx_expeditiondet_batch (
`rowid` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`fk_expeditiondet` int NOT NULL,
`eatby` date DEFAULT NULL,
`sellby` date DEFAULT NULL,
`batch` varchar(30) DEFAULT NULL,
`qty` double NOT NULL DEFAULT '0',
`fk_origin_stock` int NOT NULL
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_expeditiondet int NOT NULL,
eatby date DEFAULT NULL,
sellby date DEFAULT NULL,
batch varchar(30) DEFAULT NULL,
qty double NOT NULL DEFAULT '0',
fk_origin_stock integer NOT NULL
) ENGINE=InnoDB;
......@@ -15,14 +15,14 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- ============================================================================
CREATE TABLE `llx_product_batch` (
`rowid` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`fk_product_stock` int(11) NOT NULL,
`eatby` datetime DEFAULT NULL,
`sellby` datetime DEFAULT NULL,
`batch` varchar(30) DEFAULT NULL,
`qty` double NOT NULL DEFAULT 0,
`import_key` varchar(14) DEFAULT NULL
CREATE TABLE llx_product_batch (
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
fk_product_stock integer NOT NULL,
eatby datetime DEFAULT NULL,
sellby datetime DEFAULT NULL,
batch varchar(30) DEFAULT NULL,
qty double NOT NULL DEFAULT 0,
import_key varchar(14) DEFAULT NULL
) ENGINE=InnoDB;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment