Fix: sql syntax error with pgsql

This commit is contained in:
Laurent Destailleur 2014-03-14 12:50:45 +01:00
parent bb3632e90c
commit aab4800f87
4 changed files with 943 additions and 941 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,6 +25,6 @@ create table llx_accountingaccount
pcg_subtype varchar(20) NOT NULL, pcg_subtype varchar(20) NOT NULL,
account_number varchar(20) NOT NULL, account_number varchar(20) NOT NULL,
account_parent varchar(20), account_parent varchar(20),
label varchar(128) NOT NULL, label varchar(255) NOT NULL,
active tinyint DEFAULT 1 NOT NULL active tinyint DEFAULT 1 NOT NULL
)ENGINE=innodb; )ENGINE=innodb;

View File

@ -16,12 +16,12 @@
-- --
-- ============================================================================ -- ============================================================================
CREATE TABLE llx_expeditiondet_batch ( CREATE TABLE llx_expeditiondet_batch (
`rowid` int NOT NULL AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
`fk_expeditiondet` int NOT NULL, fk_expeditiondet int NOT NULL,
`eatby` date DEFAULT NULL, eatby date DEFAULT NULL,
`sellby` date DEFAULT NULL, sellby date DEFAULT NULL,
`batch` varchar(30) DEFAULT NULL, batch varchar(30) DEFAULT NULL,
`qty` double NOT NULL DEFAULT '0', qty double NOT NULL DEFAULT '0',
`fk_origin_stock` int NOT NULL fk_origin_stock integer NOT NULL
) ENGINE=InnoDB; ) ENGINE=InnoDB;

View File

@ -15,14 +15,14 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
-- --
-- ============================================================================ -- ============================================================================
CREATE TABLE `llx_product_batch` ( CREATE TABLE llx_product_batch (
`rowid` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
`tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, tms timestamp,
`fk_product_stock` int(11) NOT NULL, fk_product_stock integer NOT NULL,
`eatby` datetime DEFAULT NULL, eatby datetime DEFAULT NULL,
`sellby` datetime DEFAULT NULL, sellby datetime DEFAULT NULL,
`batch` varchar(30) DEFAULT NULL, batch varchar(30) DEFAULT NULL,
`qty` double NOT NULL DEFAULT 0, qty double NOT NULL DEFAULT 0,
`import_key` varchar(14) DEFAULT NULL import_key varchar(14) DEFAULT NULL
) ENGINE=InnoDB; ) ENGINE=InnoDB;