salix/db/versions/.archive/10370-pinkBirch/02-deleteTable.sql

116 lines
4.5 KiB
SQL

DROP TABLE IF EXISTS `bi`.`Last_buy_id__`;
DROP TABLE IF EXISTS `bi`.`lastaction__`;
DROP TABLE IF EXISTS `bs`.`clientNewBorn__`;
DROP TABLE IF EXISTS `bs`.`mermasCache__`;
DROP TABLE IF EXISTS `bs`.`produccion__`;
DROP TABLE IF EXISTS `bs`.`salePersonEvolution__`;
DROP TABLE IF EXISTS `bs`.`salesMonthlySnapshot__`;
DROP TABLE IF EXISTS `bs`.`salesPersonClient__`;
DROP TABLE IF EXISTS `bs`.`workerSpeed__`;
DROP TABLE IF EXISTS `bs`.`zone_ETD__`;
DROP TABLE IF EXISTS `edi`.`ektEntryAssign__`;
DROP TABLE IF EXISTS `postgresql`.`bank_account__`;
DROP TABLE IF EXISTS `postgresql`.`bank_bic__`;
DROP TABLE IF EXISTS `postgresql`.`business__`;
DROP TABLE IF EXISTS `postgresql`.`business_labour__`;
DROP TABLE IF EXISTS `postgresql`.`business_labour_payroll__`;
DROP TABLE IF EXISTS `postgresql`.`calendar_labour__`;
DROP TABLE IF EXISTS `postgresql`.`calendar_free__`;
DROP TABLE IF EXISTS `postgresql`.`calendar_labour_legend__`;
ALTER TABLE IF EXISTS `postgresql`.`province`
DROP INDEX IF EXISTS `province_nation_id_idx` ;
DROP TABLE IF EXISTS `postgresql`.`nation__`;
DROP TABLE IF EXISTS `postgresql`.`currency__`;
DROP TABLE IF EXISTS `postgresql`.`periodos__`;
DROP TABLE IF EXISTS `postgresql`.`person__`;
ALTER TABLE IF EXISTS `postgresql`.`profile__`
DROP INDEX IF EXISTS `profile_workerFk_idx` ;
ALTER TABLE IF EXISTS `postgresql`.`profile_media`
DROP INDEX IF EXISTS `profile_media_profile_id_idx` ;
DROP TABLE IF EXISTS `postgresql`.`profile__`;
DROP TABLE IF EXISTS `postgresql`.`workcenter__`;
DROP TABLE IF EXISTS `postgresql`.`workerTimeControlConfig__`;
DROP TABLE IF EXISTS `vn`.`activeContrat__`;
DROP TABLE IF EXISTS `vn`.`autonomousRegion__`;
DROP TABLE IF EXISTS `vn`.`config__`;
DROP TABLE IF EXISTS `vn`.`entrySplit__`;
DROP TABLE IF EXISTS `vn`.`errorProduction__`;
DROP TABLE IF EXISTS `vn`.`expence__`;
DROP TABLE IF EXISTS `vn`.`floramondoNotOfferDay__`;
DROP TABLE IF EXISTS `vn`.`glsExpedition__`;
DROP TABLE IF EXISTS `vn`.`invoiceInIntrastat__`;
DROP TABLE IF EXISTS `vn`.`itemConversor__`;
DROP TABLE IF EXISTS `vn`.`itemPlacement__`;
DROP TABLE IF EXISTS `vn`.`itemRepo__`;
DROP TABLE IF EXISTS `vn`.`itemVerdecora__`;
ALTER TABLE IF EXISTS `vn`.`person__`
DROP INDEX IF EXISTS `workerFk_idx` ;
DROP TABLE IF EXISTS `vn`.`person__`;
DROP TABLE IF EXISTS `vn`.`printServerQueue2__`;
DROP TABLE IF EXISTS `vn`.`printServerQueue__`;
DROP TABLE IF EXISTS `vn`.`routeGate__`;
DROP TABLE IF EXISTS `vn`.`saleItemShelving__`;
DROP TABLE IF EXISTS `vn`.`saleParking__`;
DROP TABLE IF EXISTS `vn`.`workerConfig__`;
DROP TABLE IF EXISTS `vn`.`zonePromo__`;
DROP VIEW IF EXISTS `vn`.`returnBuckets__`;
DROP TABLE IF EXISTS `vn2008`.`accumulatorsReadingDate__`;
DROP TABLE IF EXISTS `vn2008`.`Agencias_dits__`;
DROP TABLE IF EXISTS `vn2008`.`Articles_dits__`;
DROP TABLE IF EXISTS `vn2008`.`awb_cargo__`;
DROP TABLE IF EXISTS `vn2008`.`awb_coordinacion__`;
DROP TABLE IF EXISTS `vn2008`.`business_labour_payrroll__`;
DROP TABLE IF EXISTS `vn2008`.`Clientes_cedidos__`;
DROP TABLE IF EXISTS `vn2008`.`clientes_regalos_enc__`;
DROP TABLE IF EXISTS `vn2008`.`clientes_regalos_lista_enc__`;
DROP TABLE IF EXISTS `vn2008`.`Compres_mark__`;
DROP TABLE IF EXISTS `vn2008`.`config_host__`;
DROP TABLE IF EXISTS `vn2008`.`Contactos__`;
DROP TABLE IF EXISTS `vn2008`.`equipos__`;
DROP TABLE IF EXISTS `vn2008`.`Extractos__`;
DROP TABLE IF EXISTS `vn2008`.`Impresoras__`;
DROP TABLE IF EXISTS `vn2008`.`log_articles__`;
ALTER TABLE IF EXISTS `vn`.`contratos_subvencion_270619`
DROP INDEX IF EXISTS `contratos_subvencion_270619_fk3_idx` ;
DROP TABLE IF EXISTS `vn2008`.`payroll_contratos__`;
DROP TABLE IF EXISTS `vn2008`.`payroll_pagarini__`;
DROP TABLE IF EXISTS `vn2008`.`payroll_pais__`;
DROP TABLE IF EXISTS `vn2008`.`printServerQueue2__`;
DROP TABLE IF EXISTS `vn2008`.`profile_labour_payroll__`;
DROP TABLE IF EXISTS `vn2008`.`Relaciones__`;
DROP TABLE IF EXISTS `vn2008`.`ruta_location__`;
DROP TABLE IF EXISTS `vn2008`.`Rutas_dits__`;
DROP TABLE IF EXISTS `vn2008`.`Rutas_monitor__`;
DROP TABLE IF EXISTS `vn2008`.`Stockcontrol__`;
DROP TABLE IF EXISTS `vn2008`.`Tickets_dits__`;
DROP TABLE IF EXISTS `vn2008`.`travel_dits__`;
DROP TABLE IF EXISTS `vn2008`.`versiones__`;
DROP TABLE IF EXISTS `geo`.`autonomias`;
DROP TABLE IF EXISTS `geo`.`postalcodes`;
DROP TABLE IF EXISTS `geo`.`vn_rutas`;
DROP VIEW IF EXISTS `geo`.`table_list`;
DROP DATABASE IF EXISTS `geo`;
DROP TABLE IF EXISTS `nst`.`balance`;
DROP TABLE IF EXISTS `nst`.`geo`;
DROP TABLE IF EXISTS `nst`.`labourTree`;
DROP TABLE IF EXISTS `nst`.`nst`;
DROP DATABASE IF EXISTS `nst`;