delete from acessos where codigo=8; INSERT INTO acessos (codigo, descricao) VALUES (8, 'PERMITE ALTERAR O VALOR DO PRODUTO 1'); update produtos set qtde=0 where qtde=null; alter table pre add if not exists data_entrega date; alter table pre add if not exists hora_entrega time; CREATE TABLE IF NOT EXISTS "pre2" ( "numero" INTEGER, "data" date, "hora" time, "forma_pagamento" varchar(20), "valor_entrada" float, "movimento" float, "codigo_operador" INTEGER, "codigo_func" INTEGER, "estornado" BOOLEAN, PRIMARY KEY ("RecordID") COMPRESS NONE DESCRIPTION 'Adiantamentos de Pré Venda' LOCALE CODE 0 USER MAJOR VERSION 4 USER MINOR VERSION 2 ); alter table pre add if not exists data_entrega date; alter table pre add if not exists hora_entrega time; CREATE INDEX IF NOT EXISTS "numero" ON "pre2" ("numero"); CREATE INDEX IF NOT EXISTS "entrega" ON "pre" ("data_entrega","hora_entrega"); alter table pre add if not exists atendente integer; alter table pre add if not exists nome_atendente varchar(40); CREATE TABLE IF NOT EXISTS "pre10" ( "numero" INTEGER, "item" INTEGER, "impressora" INTEGER, "numero_ticket" INTEGER, PRIMARY KEY ("RecordID") COMPRESS NONE DESCRIPTION 'Impressão dos itens que tem guia de produção vinculado' LOCALE CODE 0 USER MAJOR VERSION 4 USER MINOR VERSION 1 ); CREATE INDEX IF NOT EXISTS "numero" ON "pre10" ("numero"); CREATE INDEX IF NOT EXISTS "item" ON "pre10" ("item"); CREATE INDEX IF NOT EXISTS "impressora" ON "pre10" ("impressora"); alter table sistema add if not exists contadorpedidos integer; CREATE TABLE IF NOT EXISTS "cartao_prevenda" ( "numero" Autoinc, "codbarra" char(13), "status_impresso" Boolean, "aberto" Boolean, PRIMARY KEY ("RecordID") COMPRESS NONE DESCRIPTION 'Cartões para Pre venda' LOCALE CODE 0 USER MAJOR VERSION 4 USER MINOR VERSION 1 ); CREATE INDEX IF NOT EXISTS "numero" ON "cartao_prevenda" ("numero"); alter table confignf add if not exists PAYER_login varchar(60); alter table confignf add if not exists PAYER_Senha varchar(30); alter table formas add if not exists TEF_PAYER_paymentMethod integer; alter table formas add if not exists TEF_PAYER_paymentType integer; alter table formas add if not exists TEF_PAYER_paymentMethodSubType integer; alter table formas add if not exists percentual_desconto_forma float; CREATE TABLE IF NOT EXISTS "tef" ( "numero" AUTOINC, "dh" TIMESTAMP, "NSU" VARCHAR(40), "valor" FLOAT, "Rede_Adquirente" VARCHAR(30), "Pagamento_Tipo" VARCHAR(20), "Pagamento_Cartao" VARCHAR(30), "Codigo_de_Autorizacao" VARCHAR(30), "Documento_numero" VARCHAR(20), "operacao" INTEGER, "txID" VARCHAR(70), "E2E" VARCHAR(70), PRIMARY KEY ("RecordID") COMPRESS NONE DESCRIPTION 'Registro de transação TEF' LOCALE CODE 0 USER MAJOR VERSION 4 USER MINOR VERSION 5 ); CREATE INDEX IF NOT EXISTS "numero" ON "tef" ("numero"); CREATE INDEX IF NOT EXISTS "NSU" ON "tef" ("NSU"); CREATE INDEX IF NOT EXISTS "Codigo_de_Autorizacao" ON "tef" ("Codigo_de_Autorizacao"); alter table produtos add if not exists apagado boolean; update etiq2 set dado='preco' where codigo=61; alter table confignf add if not exists permite_prod_Sem_Pag boolean; alter table nfe1 add if not exists naocobrar boolean;