From 6acd3e0b1d4f2481aa01d9458514d89533e46dfb Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 20 Aug 2024 10:10:46 +0200 Subject: [PATCH] feat: refs #7759 Changed defined only of vn objects --- db/routines/account/functions/myUser_checkLogin.sql | 2 +- db/routines/account/functions/myUser_getId.sql | 2 +- db/routines/account/functions/myUser_getName.sql | 2 +- db/routines/account/functions/myUser_hasPriv.sql | 2 +- db/routines/account/functions/myUser_hasRole.sql | 2 +- db/routines/account/functions/myUser_hasRoleId.sql | 2 +- db/routines/account/functions/myUser_hasRoutinePriv.sql | 2 +- db/routines/account/functions/passwordGenerate.sql | 2 +- db/routines/account/functions/toUnixDays.sql | 2 +- db/routines/account/functions/user_getMysqlRole.sql | 2 +- db/routines/account/functions/user_getNameFromId.sql | 2 +- db/routines/account/functions/user_hasPriv.sql | 2 +- db/routines/account/functions/user_hasRole.sql | 2 +- db/routines/account/functions/user_hasRoleId.sql | 2 +- db/routines/account/functions/user_hasRoutinePriv.sql | 2 +- db/routines/account/procedures/account_enable.sql | 2 +- db/routines/account/procedures/myUser_login.sql | 2 +- db/routines/account/procedures/myUser_loginWithKey.sql | 2 +- db/routines/account/procedures/myUser_loginWithName.sql | 2 +- db/routines/account/procedures/myUser_logout.sql | 2 +- db/routines/account/procedures/role_checkName.sql | 2 +- db/routines/account/procedures/role_getDescendents.sql | 2 +- db/routines/account/procedures/role_sync.sql | 2 +- db/routines/account/procedures/role_syncPrivileges.sql | 2 +- db/routines/account/procedures/user_checkName.sql | 2 +- db/routines/account/procedures/user_checkPassword.sql | 2 +- db/routines/account/triggers/account_afterDelete.sql | 2 +- db/routines/account/triggers/account_afterInsert.sql | 2 +- db/routines/account/triggers/account_beforeInsert.sql | 2 +- db/routines/account/triggers/account_beforeUpdate.sql | 2 +- db/routines/account/triggers/mailAliasAccount_afterDelete.sql | 2 +- db/routines/account/triggers/mailAliasAccount_beforeInsert.sql | 2 +- db/routines/account/triggers/mailAliasAccount_beforeUpdate.sql | 2 +- db/routines/account/triggers/mailAlias_afterDelete.sql | 2 +- db/routines/account/triggers/mailAlias_beforeInsert.sql | 2 +- db/routines/account/triggers/mailAlias_beforeUpdate.sql | 2 +- db/routines/account/triggers/mailForward_afterDelete.sql | 2 +- db/routines/account/triggers/mailForward_beforeInsert.sql | 2 +- db/routines/account/triggers/mailForward_beforeUpdate.sql | 2 +- db/routines/account/triggers/roleInherit_afterDelete.sql | 2 +- db/routines/account/triggers/roleInherit_beforeInsert.sql | 2 +- db/routines/account/triggers/roleInherit_beforeUpdate.sql | 2 +- db/routines/account/triggers/role_afterDelete.sql | 2 +- db/routines/account/triggers/role_beforeInsert.sql | 2 +- db/routines/account/triggers/role_beforeUpdate.sql | 2 +- db/routines/account/triggers/user_afterDelete.sql | 2 +- db/routines/account/triggers/user_afterInsert.sql | 2 +- db/routines/account/triggers/user_afterUpdate.sql | 2 +- db/routines/account/triggers/user_beforeInsert.sql | 2 +- db/routines/account/triggers/user_beforeUpdate.sql | 2 +- db/routines/account/views/accountDovecot.sql | 2 +- db/routines/account/views/emailUser.sql | 2 +- db/routines/account/views/myRole.sql | 2 +- db/routines/account/views/myUser.sql | 2 +- db/routines/bi/procedures/Greuge_Evolution_Add.sql | 2 +- db/routines/bi/procedures/analisis_ventas_evolution_add.sql | 2 +- db/routines/bi/procedures/analisis_ventas_simple.sql | 2 +- db/routines/bi/procedures/analisis_ventas_update.sql | 2 +- db/routines/bi/procedures/clean.sql | 2 +- db/routines/bi/procedures/defaultersFromDate.sql | 2 +- db/routines/bi/procedures/defaulting.sql | 2 +- db/routines/bi/procedures/defaulting_launcher.sql | 2 +- db/routines/bi/procedures/facturacion_media_anual_update.sql | 2 +- db/routines/bi/procedures/greuge_dif_porte_add.sql | 2 +- db/routines/bi/procedures/nigthlyAnalisisVentas.sql | 2 +- db/routines/bi/procedures/rutasAnalyze.sql | 2 +- db/routines/bi/procedures/rutasAnalyze_launcher.sql | 2 +- db/routines/bi/views/analisis_grafico_ventas.sql | 2 +- db/routines/bi/views/analisis_ventas_simple.sql | 2 +- db/routines/bi/views/claims_ratio.sql | 2 +- db/routines/bi/views/customerRiskOverdue.sql | 2 +- db/routines/bi/views/defaulters.sql | 2 +- db/routines/bi/views/facturacion_media_anual.sql | 2 +- db/routines/bi/views/rotacion.sql | 2 +- db/routines/bi/views/tarifa_componentes.sql | 2 +- db/routines/bi/views/tarifa_componentes_series.sql | 2 +- db/routines/bs/events/clientDied_recalc.sql | 2 +- db/routines/bs/events/inventoryDiscrepancy_launch.sql | 2 +- db/routines/bs/events/nightTask_launchAll.sql | 2 +- db/routines/bs/functions/tramo.sql | 2 +- db/routines/bs/procedures/campaignComparative.sql | 2 +- db/routines/bs/procedures/carteras_add.sql | 2 +- db/routines/bs/procedures/clean.sql | 2 +- db/routines/bs/procedures/clientDied_recalc.sql | 2 +- db/routines/bs/procedures/clientNewBorn_recalc.sql | 2 +- db/routines/bs/procedures/compradores_evolution_add.sql | 2 +- db/routines/bs/procedures/fondo_evolution_add.sql | 2 +- db/routines/bs/procedures/fruitsEvolution.sql | 2 +- db/routines/bs/procedures/indicatorsUpdate.sql | 2 +- db/routines/bs/procedures/indicatorsUpdateLauncher.sql | 2 +- .../bs/procedures/inventoryDiscrepancyDetail_replace.sql | 2 +- db/routines/bs/procedures/m3Add.sql | 2 +- db/routines/bs/procedures/manaCustomerUpdate.sql | 2 +- db/routines/bs/procedures/manaSpellers_actualize.sql | 2 +- db/routines/bs/procedures/nightTask_launchAll.sql | 2 +- db/routines/bs/procedures/nightTask_launchTask.sql | 2 +- db/routines/bs/procedures/payMethodClientAdd.sql | 2 +- db/routines/bs/procedures/saleGraphic.sql | 2 +- db/routines/bs/procedures/salePersonEvolutionAdd.sql | 2 +- db/routines/bs/procedures/sale_add.sql | 2 +- db/routines/bs/procedures/salesByItemTypeDay_add.sql | 2 +- db/routines/bs/procedures/salesByItemTypeDay_addLauncher.sql | 2 +- db/routines/bs/procedures/salesByclientSalesPerson_add.sql | 2 +- db/routines/bs/procedures/salesPersonEvolution_add.sql | 2 +- db/routines/bs/procedures/sales_addLauncher.sql | 2 +- db/routines/bs/procedures/vendedores_add_launcher.sql | 2 +- db/routines/bs/procedures/ventas_contables_add.sql | 2 +- db/routines/bs/procedures/ventas_contables_add_launcher.sql | 2 +- db/routines/bs/procedures/waste_addSales.sql | 2 +- db/routines/bs/procedures/workerLabour_getData.sql | 2 +- db/routines/bs/procedures/workerProductivity_add.sql | 2 +- db/routines/bs/triggers/clientNewBorn_beforeUpdate.sql | 2 +- db/routines/bs/triggers/nightTask_beforeInsert.sql | 2 +- db/routines/bs/triggers/nightTask_beforeUpdate.sql | 2 +- db/routines/bs/views/lastIndicators.sql | 2 +- db/routines/bs/views/packingSpeed.sql | 2 +- db/routines/bs/views/ventas.sql | 2 +- db/routines/cache/events/cacheCalc_clean.sql | 2 +- db/routines/cache/events/cache_clean.sql | 2 +- db/routines/cache/procedures/addressFriendship_Update.sql | 2 +- db/routines/cache/procedures/availableNoRaids_refresh.sql | 2 +- db/routines/cache/procedures/available_clean.sql | 2 +- db/routines/cache/procedures/available_refresh.sql | 2 +- db/routines/cache/procedures/cacheCalc_clean.sql | 2 +- db/routines/cache/procedures/cache_calc_end.sql | 2 +- db/routines/cache/procedures/cache_calc_start.sql | 2 +- db/routines/cache/procedures/cache_calc_unlock.sql | 2 +- db/routines/cache/procedures/cache_clean.sql | 2 +- db/routines/cache/procedures/clean.sql | 2 +- db/routines/cache/procedures/departure_timing.sql | 2 +- db/routines/cache/procedures/last_buy_refresh.sql | 2 +- db/routines/cache/procedures/stock_refresh.sql | 2 +- db/routines/cache/procedures/visible_clean.sql | 2 +- db/routines/cache/procedures/visible_refresh.sql | 2 +- db/routines/dipole/procedures/clean.sql | 2 +- db/routines/dipole/procedures/expedition_add.sql | 2 +- db/routines/dipole/views/expeditionControl.sql | 2 +- db/routines/edi/events/floramondo.sql | 2 +- db/routines/edi/functions/imageName.sql | 2 +- db/routines/edi/procedures/clean.sql | 2 +- db/routines/edi/procedures/deliveryInformation_Delete.sql | 2 +- db/routines/edi/procedures/ekt_add.sql | 2 +- db/routines/edi/procedures/ekt_load.sql | 2 +- db/routines/edi/procedures/ekt_loadNotBuy.sql | 2 +- db/routines/edi/procedures/ekt_refresh.sql | 2 +- db/routines/edi/procedures/ekt_scan.sql | 2 +- db/routines/edi/procedures/floramondo_offerRefresh.sql | 2 +- db/routines/edi/procedures/item_freeAdd.sql | 2 +- db/routines/edi/procedures/item_getNewByEkt.sql | 2 +- db/routines/edi/procedures/mail_new.sql | 2 +- db/routines/edi/triggers/item_feature_beforeInsert.sql | 2 +- db/routines/edi/triggers/putOrder_afterUpdate.sql | 2 +- db/routines/edi/triggers/putOrder_beforeInsert.sql | 2 +- db/routines/edi/triggers/putOrder_beforeUpdate.sql | 2 +- db/routines/edi/triggers/supplyResponse_afterUpdate.sql | 2 +- db/routines/edi/views/ektK2.sql | 2 +- db/routines/edi/views/ektRecent.sql | 2 +- db/routines/edi/views/errorList.sql | 2 +- db/routines/edi/views/supplyOffer.sql | 2 +- db/routines/floranet/procedures/catalogue_findById.sql | 2 +- db/routines/floranet/procedures/catalogue_get.sql | 2 +- db/routines/floranet/procedures/contact_request.sql | 2 +- db/routines/floranet/procedures/deliveryDate_get.sql | 2 +- db/routines/floranet/procedures/order_confirm.sql | 2 +- db/routines/floranet/procedures/order_put.sql | 2 +- db/routines/floranet/procedures/sliders_get.sql | 2 +- db/routines/hedera/functions/myClient_getDebt.sql | 2 +- db/routines/hedera/functions/myUser_checkRestPriv.sql | 2 +- db/routines/hedera/functions/order_getTotal.sql | 2 +- db/routines/hedera/procedures/catalog_calcFromMyAddress.sql | 2 +- db/routines/hedera/procedures/image_ref.sql | 2 +- db/routines/hedera/procedures/image_unref.sql | 2 +- db/routines/hedera/procedures/item_calcCatalog.sql | 2 +- db/routines/hedera/procedures/item_getVisible.sql | 2 +- db/routines/hedera/procedures/item_listAllocation.sql | 2 +- db/routines/hedera/procedures/myOrder_addItem.sql | 2 +- db/routines/hedera/procedures/myOrder_calcCatalogFromItem.sql | 2 +- db/routines/hedera/procedures/myOrder_calcCatalogFull.sql | 2 +- db/routines/hedera/procedures/myOrder_checkConfig.sql | 2 +- db/routines/hedera/procedures/myOrder_checkMine.sql | 2 +- db/routines/hedera/procedures/myOrder_configure.sql | 2 +- db/routines/hedera/procedures/myOrder_configureForGuest.sql | 2 +- db/routines/hedera/procedures/myOrder_confirm.sql | 2 +- db/routines/hedera/procedures/myOrder_create.sql | 2 +- db/routines/hedera/procedures/myOrder_getAvailable.sql | 2 +- db/routines/hedera/procedures/myOrder_getTax.sql | 2 +- db/routines/hedera/procedures/myOrder_newWithAddress.sql | 2 +- db/routines/hedera/procedures/myOrder_newWithDate.sql | 2 +- db/routines/hedera/procedures/myTicket_get.sql | 2 +- db/routines/hedera/procedures/myTicket_getPackages.sql | 2 +- db/routines/hedera/procedures/myTicket_getRows.sql | 2 +- db/routines/hedera/procedures/myTicket_getServices.sql | 2 +- db/routines/hedera/procedures/myTicket_list.sql | 2 +- db/routines/hedera/procedures/myTicket_logAccess.sql | 2 +- db/routines/hedera/procedures/myTpvTransaction_end.sql | 2 +- db/routines/hedera/procedures/myTpvTransaction_start.sql | 2 +- db/routines/hedera/procedures/order_addItem.sql | 2 +- db/routines/hedera/procedures/order_calcCatalog.sql | 2 +- db/routines/hedera/procedures/order_calcCatalogFromItem.sql | 2 +- db/routines/hedera/procedures/order_calcCatalogFull.sql | 2 +- db/routines/hedera/procedures/order_checkConfig.sql | 2 +- db/routines/hedera/procedures/order_checkEditable.sql | 2 +- db/routines/hedera/procedures/order_configure.sql | 2 +- db/routines/hedera/procedures/order_confirm.sql | 2 +- db/routines/hedera/procedures/order_confirmWithUser.sql | 2 +- db/routines/hedera/procedures/order_getAvailable.sql | 2 +- db/routines/hedera/procedures/order_getTax.sql | 2 +- db/routines/hedera/procedures/order_getTotal.sql | 2 +- db/routines/hedera/procedures/order_recalc.sql | 2 +- db/routines/hedera/procedures/order_update.sql | 2 +- db/routines/hedera/procedures/survey_vote.sql | 2 +- db/routines/hedera/procedures/tpvTransaction_confirm.sql | 2 +- db/routines/hedera/procedures/tpvTransaction_confirmAll.sql | 2 +- db/routines/hedera/procedures/tpvTransaction_confirmById.sql | 2 +- .../hedera/procedures/tpvTransaction_confirmFromExport.sql | 2 +- db/routines/hedera/procedures/tpvTransaction_end.sql | 2 +- db/routines/hedera/procedures/tpvTransaction_start.sql | 2 +- db/routines/hedera/procedures/tpvTransaction_undo.sql | 2 +- db/routines/hedera/procedures/visitUser_new.sql | 2 +- db/routines/hedera/procedures/visit_listByBrowser.sql | 2 +- db/routines/hedera/procedures/visit_register.sql | 2 +- db/routines/hedera/triggers/link_afterDelete.sql | 2 +- db/routines/hedera/triggers/link_afterInsert.sql | 2 +- db/routines/hedera/triggers/link_afterUpdate.sql | 2 +- db/routines/hedera/triggers/news_afterDelete.sql | 2 +- db/routines/hedera/triggers/news_afterInsert.sql | 2 +- db/routines/hedera/triggers/news_afterUpdate.sql | 2 +- db/routines/hedera/triggers/orderRow_beforeInsert.sql | 2 +- db/routines/hedera/triggers/order_afterInsert.sql | 2 +- db/routines/hedera/triggers/order_afterUpdate.sql | 2 +- db/routines/hedera/triggers/order_beforeDelete.sql | 2 +- db/routines/hedera/views/mainAccountBank.sql | 2 +- db/routines/hedera/views/messageL10n.sql | 2 +- db/routines/hedera/views/myAddress.sql | 2 +- db/routines/hedera/views/myBasketDefaults.sql | 2 +- db/routines/hedera/views/myClient.sql | 2 +- db/routines/hedera/views/myInvoice.sql | 2 +- db/routines/hedera/views/myMenu.sql | 2 +- db/routines/hedera/views/myOrder.sql | 2 +- db/routines/hedera/views/myOrderRow.sql | 2 +- db/routines/hedera/views/myOrderTicket.sql | 2 +- db/routines/hedera/views/myTicket.sql | 2 +- db/routines/hedera/views/myTicketRow.sql | 2 +- db/routines/hedera/views/myTicketService.sql | 2 +- db/routines/hedera/views/myTicketState.sql | 2 +- db/routines/hedera/views/myTpvTransaction.sql | 2 +- db/routines/hedera/views/orderTicket.sql | 2 +- db/routines/hedera/views/order_component.sql | 2 +- db/routines/hedera/views/order_row.sql | 2 +- db/routines/pbx/functions/clientFromPhone.sql | 2 +- db/routines/pbx/functions/phone_format.sql | 2 +- db/routines/pbx/procedures/phone_isValid.sql | 2 +- db/routines/pbx/procedures/queue_isValid.sql | 2 +- db/routines/pbx/procedures/sip_getExtension.sql | 2 +- db/routines/pbx/procedures/sip_isValid.sql | 2 +- db/routines/pbx/procedures/sip_setPassword.sql | 2 +- db/routines/pbx/triggers/blacklist_beforeInsert.sql | 2 +- db/routines/pbx/triggers/blacklist_berforeUpdate.sql | 2 +- db/routines/pbx/triggers/followme_beforeInsert.sql | 2 +- db/routines/pbx/triggers/followme_beforeUpdate.sql | 2 +- db/routines/pbx/triggers/queuePhone_beforeInsert.sql | 2 +- db/routines/pbx/triggers/queuePhone_beforeUpdate.sql | 2 +- db/routines/pbx/triggers/queue_beforeInsert.sql | 2 +- db/routines/pbx/triggers/queue_beforeUpdate.sql | 2 +- db/routines/pbx/triggers/sip_afterInsert.sql | 2 +- db/routines/pbx/triggers/sip_afterUpdate.sql | 2 +- db/routines/pbx/triggers/sip_beforeInsert.sql | 2 +- db/routines/pbx/triggers/sip_beforeUpdate.sql | 2 +- db/routines/pbx/views/cdrConf.sql | 2 +- db/routines/pbx/views/followmeConf.sql | 2 +- db/routines/pbx/views/followmeNumberConf.sql | 2 +- db/routines/pbx/views/queueConf.sql | 2 +- db/routines/pbx/views/queueMemberConf.sql | 2 +- db/routines/pbx/views/sipConf.sql | 2 +- db/routines/psico/procedures/answerSort.sql | 2 +- db/routines/psico/procedures/examNew.sql | 2 +- db/routines/psico/procedures/getExamQuestions.sql | 2 +- db/routines/psico/procedures/getExamType.sql | 2 +- db/routines/psico/procedures/questionSort.sql | 2 +- db/routines/psico/views/examView.sql | 2 +- db/routines/psico/views/results.sql | 2 +- db/routines/sage/functions/company_getCode.sql | 2 +- db/routines/sage/procedures/accountingMovements_add.sql | 2 +- db/routines/sage/procedures/clean.sql | 2 +- db/routines/sage/procedures/clientSupplier_add.sql | 2 +- db/routines/sage/procedures/importErrorNotification.sql | 2 +- db/routines/sage/procedures/invoiceIn_add.sql | 2 +- db/routines/sage/procedures/invoiceIn_manager.sql | 2 +- db/routines/sage/procedures/invoiceOut_add.sql | 2 +- db/routines/sage/procedures/invoiceOut_manager.sql | 2 +- db/routines/sage/procedures/pgc_add.sql | 2 +- db/routines/sage/triggers/movConta_beforeUpdate.sql | 2 +- db/routines/sage/views/clientLastTwoMonths.sql | 2 +- db/routines/sage/views/supplierLastThreeMonths.sql | 2 +- db/routines/salix/events/accessToken_prune.sql | 2 +- db/routines/salix/procedures/accessToken_prune.sql | 2 +- db/routines/salix/views/Account.sql | 2 +- db/routines/salix/views/Role.sql | 2 +- db/routines/salix/views/RoleMapping.sql | 2 +- db/routines/salix/views/User.sql | 2 +- db/routines/srt/events/moving_clean.sql | 2 +- db/routines/srt/functions/bid.sql | 2 +- db/routines/srt/functions/bufferPool_get.sql | 2 +- db/routines/srt/functions/buffer_get.sql | 2 +- db/routines/srt/functions/buffer_getRandom.sql | 2 +- db/routines/srt/functions/buffer_getState.sql | 2 +- db/routines/srt/functions/buffer_getType.sql | 2 +- db/routines/srt/functions/buffer_isFull.sql | 2 +- db/routines/srt/functions/dayMinute.sql | 2 +- db/routines/srt/functions/expedition_check.sql | 2 +- db/routines/srt/functions/expedition_getDayMinute.sql | 2 +- db/routines/srt/procedures/buffer_getExpCount.sql | 2 +- db/routines/srt/procedures/buffer_getStateType.sql | 2 +- db/routines/srt/procedures/buffer_giveBack.sql | 2 +- db/routines/srt/procedures/buffer_readPhotocell.sql | 2 +- db/routines/srt/procedures/buffer_setEmpty.sql | 2 +- db/routines/srt/procedures/buffer_setState.sql | 2 +- db/routines/srt/procedures/buffer_setStateType.sql | 2 +- db/routines/srt/procedures/buffer_setType.sql | 2 +- db/routines/srt/procedures/buffer_setTypeByName.sql | 2 +- db/routines/srt/procedures/clean.sql | 2 +- db/routines/srt/procedures/expeditionLoading_add.sql | 2 +- db/routines/srt/procedures/expedition_arrived.sql | 2 +- db/routines/srt/procedures/expedition_bufferOut.sql | 2 +- db/routines/srt/procedures/expedition_entering.sql | 2 +- db/routines/srt/procedures/expedition_get.sql | 2 +- db/routines/srt/procedures/expedition_groupOut.sql | 2 +- db/routines/srt/procedures/expedition_in.sql | 2 +- db/routines/srt/procedures/expedition_moving.sql | 2 +- db/routines/srt/procedures/expedition_out.sql | 2 +- db/routines/srt/procedures/expedition_outAll.sql | 2 +- db/routines/srt/procedures/expedition_relocate.sql | 2 +- db/routines/srt/procedures/expedition_reset.sql | 2 +- db/routines/srt/procedures/expedition_routeOut.sql | 2 +- db/routines/srt/procedures/expedition_scan.sql | 2 +- db/routines/srt/procedures/expedition_setDimensions.sql | 2 +- db/routines/srt/procedures/expedition_weighing.sql | 2 +- db/routines/srt/procedures/failureLog_add.sql | 2 +- db/routines/srt/procedures/lastRFID_add.sql | 2 +- db/routines/srt/procedures/lastRFID_add_beta.sql | 2 +- db/routines/srt/procedures/moving_CollidingSet.sql | 2 +- db/routines/srt/procedures/moving_between.sql | 2 +- db/routines/srt/procedures/moving_clean.sql | 2 +- db/routines/srt/procedures/moving_delete.sql | 2 +- db/routines/srt/procedures/moving_groupOut.sql | 2 +- db/routines/srt/procedures/moving_next.sql | 2 +- db/routines/srt/procedures/photocell_setActive.sql | 2 +- db/routines/srt/procedures/randomMoving.sql | 2 +- db/routines/srt/procedures/randomMoving_Launch.sql | 2 +- db/routines/srt/procedures/restart.sql | 2 +- db/routines/srt/procedures/start.sql | 2 +- db/routines/srt/procedures/stop.sql | 2 +- db/routines/srt/procedures/test.sql | 2 +- db/routines/srt/triggers/expedition_beforeUpdate.sql | 2 +- db/routines/srt/triggers/moving_afterInsert.sql | 2 +- db/routines/srt/views/bufferDayMinute.sql | 2 +- db/routines/srt/views/bufferFreeLength.sql | 2 +- db/routines/srt/views/bufferStock.sql | 2 +- db/routines/srt/views/routePalletized.sql | 2 +- db/routines/srt/views/ticketPalletized.sql | 2 +- db/routines/srt/views/upperStickers.sql | 2 +- db/routines/stock/events/log_clean.sql | 2 +- db/routines/stock/events/log_syncNoWait.sql | 2 +- db/routines/stock/procedures/inbound_addPick.sql | 2 +- db/routines/stock/procedures/inbound_removePick.sql | 2 +- db/routines/stock/procedures/inbound_requestQuantity.sql | 2 +- db/routines/stock/procedures/inbound_sync.sql | 2 +- db/routines/stock/procedures/log_clean.sql | 2 +- db/routines/stock/procedures/log_delete.sql | 2 +- db/routines/stock/procedures/log_refreshAll.sql | 2 +- db/routines/stock/procedures/log_refreshBuy.sql | 2 +- db/routines/stock/procedures/log_refreshOrder.sql | 2 +- db/routines/stock/procedures/log_refreshSale.sql | 2 +- db/routines/stock/procedures/log_sync.sql | 2 +- db/routines/stock/procedures/log_syncNoWait.sql | 2 +- db/routines/stock/procedures/outbound_requestQuantity.sql | 2 +- db/routines/stock/procedures/outbound_sync.sql | 2 +- db/routines/stock/procedures/visible_log.sql | 2 +- db/routines/stock/triggers/inbound_afterDelete.sql | 2 +- db/routines/stock/triggers/inbound_beforeInsert.sql | 2 +- db/routines/stock/triggers/outbound_afterDelete.sql | 2 +- db/routines/stock/triggers/outbound_beforeInsert.sql | 2 +- db/routines/tmp/events/clean.sql | 2 +- db/routines/tmp/procedures/clean.sql | 2 +- db/routines/util/events/slowLog_prune.sql | 2 +- db/routines/util/functions/VN_CURDATE.sql | 2 +- db/routines/util/functions/VN_CURTIME.sql | 2 +- db/routines/util/functions/VN_NOW.sql | 2 +- db/routines/util/functions/VN_UNIX_TIMESTAMP.sql | 2 +- db/routines/util/functions/VN_UTC_DATE.sql | 2 +- db/routines/util/functions/VN_UTC_TIME.sql | 2 +- db/routines/util/functions/VN_UTC_TIMESTAMP.sql | 2 +- db/routines/util/functions/accountNumberToIban.sql | 2 +- db/routines/util/functions/accountShortToStandard.sql | 2 +- db/routines/util/functions/binlogQueue_getDelay.sql | 2 +- db/routines/util/functions/capitalizeFirst.sql | 2 +- db/routines/util/functions/checkPrintableChars.sql | 2 +- db/routines/util/functions/crypt.sql | 2 +- db/routines/util/functions/cryptOff.sql | 2 +- db/routines/util/functions/dayEnd.sql | 2 +- db/routines/util/functions/firstDayOfMonth.sql | 2 +- db/routines/util/functions/firstDayOfYear.sql | 2 +- db/routines/util/functions/formatRow.sql | 2 +- db/routines/util/functions/formatTable.sql | 2 +- db/routines/util/functions/hasDateOverlapped.sql | 2 +- db/routines/util/functions/hmacSha2.sql | 2 +- db/routines/util/functions/isLeapYear.sql | 2 +- db/routines/util/functions/json_removeNulls.sql | 2 +- db/routines/util/functions/lang.sql | 2 +- db/routines/util/functions/lastDayOfYear.sql | 2 +- db/routines/util/functions/log_formatDate.sql | 2 +- db/routines/util/functions/midnight.sql | 2 +- db/routines/util/functions/mockTime.sql | 2 +- db/routines/util/functions/mockTimeBase.sql | 2 +- db/routines/util/functions/mockUtcTime.sql | 2 +- db/routines/util/functions/nextWeek.sql | 2 +- db/routines/util/functions/notification_send.sql | 2 +- db/routines/util/functions/quarterFirstDay.sql | 2 +- db/routines/util/functions/quoteIdentifier.sql | 2 +- db/routines/util/functions/stringXor.sql | 2 +- db/routines/util/functions/today.sql | 2 +- db/routines/util/functions/tomorrow.sql | 2 +- db/routines/util/functions/twoDaysAgo.sql | 2 +- db/routines/util/functions/yearRelativePosition.sql | 2 +- db/routines/util/functions/yesterday.sql | 2 +- db/routines/util/procedures/checkHex.sql | 2 +- db/routines/util/procedures/connection_kill.sql | 2 +- db/routines/util/procedures/debugAdd.sql | 2 +- db/routines/util/procedures/exec.sql | 2 +- db/routines/util/procedures/log_add.sql | 2 +- db/routines/util/procedures/log_addWithUser.sql | 2 +- db/routines/util/procedures/log_cleanInstances.sql | 2 +- db/routines/util/procedures/procNoOverlap.sql | 2 +- db/routines/util/procedures/proc_changedPrivs.sql | 2 +- db/routines/util/procedures/proc_restorePrivs.sql | 2 +- db/routines/util/procedures/proc_savePrivs.sql | 2 +- db/routines/util/procedures/slowLog_prune.sql | 2 +- db/routines/util/procedures/throw.sql | 2 +- db/routines/util/procedures/time_generate.sql | 2 +- db/routines/util/procedures/tx_commit.sql | 2 +- db/routines/util/procedures/tx_rollback.sql | 2 +- db/routines/util/procedures/tx_start.sql | 2 +- db/routines/util/procedures/warn.sql | 2 +- db/routines/util/views/eventLogGrouped.sql | 2 +- db/routines/vn2008/views/Agencias.sql | 2 +- db/routines/vn2008/views/Articles.sql | 2 +- db/routines/vn2008/views/Bancos.sql | 2 +- db/routines/vn2008/views/Bancos_poliza.sql | 2 +- db/routines/vn2008/views/Cajas.sql | 2 +- db/routines/vn2008/views/Clientes.sql | 2 +- db/routines/vn2008/views/Comparativa.sql | 2 +- db/routines/vn2008/views/Compres.sql | 2 +- db/routines/vn2008/views/Compres_mark.sql | 2 +- db/routines/vn2008/views/Consignatarios.sql | 2 +- db/routines/vn2008/views/Cubos.sql | 2 +- db/routines/vn2008/views/Cubos_Retorno.sql | 2 +- db/routines/vn2008/views/Entradas.sql | 2 +- db/routines/vn2008/views/Entradas_Auto.sql | 2 +- db/routines/vn2008/views/Entradas_orden.sql | 2 +- db/routines/vn2008/views/Impresoras.sql | 2 +- db/routines/vn2008/views/Monedas.sql | 2 +- db/routines/vn2008/views/Movimientos.sql | 2 +- db/routines/vn2008/views/Movimientos_componentes.sql | 2 +- db/routines/vn2008/views/Movimientos_mark.sql | 2 +- db/routines/vn2008/views/Ordenes.sql | 2 +- db/routines/vn2008/views/Origen.sql | 2 +- db/routines/vn2008/views/Paises.sql | 2 +- db/routines/vn2008/views/PreciosEspeciales.sql | 2 +- db/routines/vn2008/views/Proveedores.sql | 2 +- db/routines/vn2008/views/Proveedores_cargueras.sql | 2 +- db/routines/vn2008/views/Proveedores_gestdoc.sql | 2 +- db/routines/vn2008/views/Recibos.sql | 2 +- db/routines/vn2008/views/Remesas.sql | 2 +- db/routines/vn2008/views/Rutas.sql | 2 +- db/routines/vn2008/views/Split.sql | 2 +- db/routines/vn2008/views/Split_lines.sql | 2 +- db/routines/vn2008/views/Tickets.sql | 2 +- db/routines/vn2008/views/Tickets_state.sql | 2 +- db/routines/vn2008/views/Tickets_turno.sql | 2 +- db/routines/vn2008/views/Tintas.sql | 2 +- db/routines/vn2008/views/Tipos.sql | 2 +- db/routines/vn2008/views/Trabajadores.sql | 2 +- db/routines/vn2008/views/Tramos.sql | 2 +- db/routines/vn2008/views/V_edi_item_track.sql | 2 +- db/routines/vn2008/views/Vehiculos_consumo.sql | 2 +- db/routines/vn2008/views/account_conciliacion.sql | 2 +- db/routines/vn2008/views/account_detail.sql | 2 +- db/routines/vn2008/views/account_detail_type.sql | 2 +- db/routines/vn2008/views/agency.sql | 2 +- db/routines/vn2008/views/airline.sql | 2 +- db/routines/vn2008/views/airport.sql | 2 +- db/routines/vn2008/views/albaran.sql | 2 +- db/routines/vn2008/views/albaran_gestdoc.sql | 2 +- db/routines/vn2008/views/albaran_state.sql | 2 +- db/routines/vn2008/views/awb.sql | 2 +- db/routines/vn2008/views/awb_component.sql | 2 +- db/routines/vn2008/views/awb_component_template.sql | 2 +- db/routines/vn2008/views/awb_component_type.sql | 2 +- db/routines/vn2008/views/awb_gestdoc.sql | 2 +- db/routines/vn2008/views/awb_recibida.sql | 2 +- db/routines/vn2008/views/awb_role.sql | 2 +- db/routines/vn2008/views/awb_unit.sql | 2 +- db/routines/vn2008/views/balance_nest_tree.sql | 2 +- db/routines/vn2008/views/barcodes.sql | 2 +- db/routines/vn2008/views/buySource.sql | 2 +- db/routines/vn2008/views/buy_edi.sql | 2 +- db/routines/vn2008/views/buy_edi_k012.sql | 2 +- db/routines/vn2008/views/buy_edi_k03.sql | 2 +- db/routines/vn2008/views/buy_edi_k04.sql | 2 +- db/routines/vn2008/views/cdr.sql | 2 +- db/routines/vn2008/views/chanel.sql | 2 +- db/routines/vn2008/views/cl_act.sql | 2 +- db/routines/vn2008/views/cl_cau.sql | 2 +- db/routines/vn2008/views/cl_con.sql | 2 +- db/routines/vn2008/views/cl_det.sql | 2 +- db/routines/vn2008/views/cl_main.sql | 2 +- db/routines/vn2008/views/cl_mot.sql | 2 +- db/routines/vn2008/views/cl_res.sql | 2 +- db/routines/vn2008/views/cl_sol.sql | 2 +- db/routines/vn2008/views/config_host.sql | 2 +- db/routines/vn2008/views/consignatarios_observation.sql | 2 +- db/routines/vn2008/views/credit.sql | 2 +- db/routines/vn2008/views/definitivo.sql | 2 +- db/routines/vn2008/views/edi_article.sql | 2 +- db/routines/vn2008/views/edi_bucket.sql | 2 +- db/routines/vn2008/views/edi_bucket_type.sql | 2 +- db/routines/vn2008/views/edi_specie.sql | 2 +- db/routines/vn2008/views/edi_supplier.sql | 2 +- db/routines/vn2008/views/empresa.sql | 2 +- db/routines/vn2008/views/empresa_grupo.sql | 2 +- db/routines/vn2008/views/entrySource.sql | 2 +- db/routines/vn2008/views/financialProductType.sql | 2 +- db/routines/vn2008/views/flight.sql | 2 +- db/routines/vn2008/views/gastos_resumen.sql | 2 +- db/routines/vn2008/views/integra2.sql | 2 +- db/routines/vn2008/views/integra2_province.sql | 2 +- db/routines/vn2008/views/mail.sql | 2 +- db/routines/vn2008/views/mandato.sql | 2 +- db/routines/vn2008/views/mandato_tipo.sql | 2 +- db/routines/vn2008/views/pago.sql | 2 +- db/routines/vn2008/views/pago_sdc.sql | 2 +- db/routines/vn2008/views/pay_dem.sql | 2 +- db/routines/vn2008/views/pay_dem_det.sql | 2 +- db/routines/vn2008/views/pay_met.sql | 2 +- db/routines/vn2008/views/payrollWorker.sql | 2 +- db/routines/vn2008/views/payroll_categorias.sql | 2 +- db/routines/vn2008/views/payroll_centros.sql | 2 +- db/routines/vn2008/views/payroll_conceptos.sql | 2 +- db/routines/vn2008/views/plantpassport.sql | 2 +- db/routines/vn2008/views/plantpassport_authority.sql | 2 +- db/routines/vn2008/views/price_fixed.sql | 2 +- db/routines/vn2008/views/producer.sql | 2 +- db/routines/vn2008/views/promissoryNote.sql | 2 +- db/routines/vn2008/views/proveedores_clientes.sql | 2 +- db/routines/vn2008/views/province.sql | 2 +- db/routines/vn2008/views/recibida.sql | 2 +- db/routines/vn2008/views/recibida_intrastat.sql | 2 +- db/routines/vn2008/views/recibida_iva.sql | 2 +- db/routines/vn2008/views/recibida_vencimiento.sql | 2 +- db/routines/vn2008/views/recovery.sql | 2 +- db/routines/vn2008/views/reference_rate.sql | 2 +- db/routines/vn2008/views/reinos.sql | 2 +- db/routines/vn2008/views/state.sql | 2 +- db/routines/vn2008/views/tag.sql | 2 +- db/routines/vn2008/views/tarifa_componentes.sql | 2 +- db/routines/vn2008/views/tarifa_componentes_series.sql | 2 +- db/routines/vn2008/views/tblContadores.sql | 2 +- db/routines/vn2008/views/thermograph.sql | 2 +- db/routines/vn2008/views/ticket_observation.sql | 2 +- db/routines/vn2008/views/tickets_gestdoc.sql | 2 +- db/routines/vn2008/views/time.sql | 2 +- db/routines/vn2008/views/travel.sql | 2 +- db/routines/vn2008/views/v_Articles_botanical.sql | 2 +- db/routines/vn2008/views/v_compres.sql | 2 +- db/routines/vn2008/views/v_empresa.sql | 2 +- db/routines/vn2008/views/versiones.sql | 2 +- db/routines/vn2008/views/warehouse_pickup.sql | 2 +- 577 files changed, 577 insertions(+), 577 deletions(-) diff --git a/db/routines/account/functions/myUser_checkLogin.sql b/db/routines/account/functions/myUser_checkLogin.sql index 76cf6da04..ed55f0d13 100644 --- a/db/routines/account/functions/myUser_checkLogin.sql +++ b/db/routines/account/functions/myUser_checkLogin.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`myUser_checkLogin`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`myUser_checkLogin`() RETURNS tinyint(1) DETERMINISTIC READS SQL DATA diff --git a/db/routines/account/functions/myUser_getId.sql b/db/routines/account/functions/myUser_getId.sql index 864e798a9..bc86c87dc 100644 --- a/db/routines/account/functions/myUser_getId.sql +++ b/db/routines/account/functions/myUser_getId.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`myUser_getId`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`myUser_getId`() RETURNS int(11) DETERMINISTIC READS SQL DATA diff --git a/db/routines/account/functions/myUser_getName.sql b/db/routines/account/functions/myUser_getName.sql index e91681329..541f7c086 100644 --- a/db/routines/account/functions/myUser_getName.sql +++ b/db/routines/account/functions/myUser_getName.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`myUser_getName`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`myUser_getName`() RETURNS varchar(30) CHARSET utf8mb3 COLLATE utf8mb3_general_ci DETERMINISTIC NO SQL diff --git a/db/routines/account/functions/myUser_hasPriv.sql b/db/routines/account/functions/myUser_hasPriv.sql index 8105e9baa..b53580d74 100644 --- a/db/routines/account/functions/myUser_hasPriv.sql +++ b/db/routines/account/functions/myUser_hasPriv.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`myUser_hasPriv`(vChain VARCHAR(100), +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`myUser_hasPriv`(vChain VARCHAR(100), vPrivilege ENUM('SELECT','INSERT','UPDATE','DELETE') ) RETURNS tinyint(1) diff --git a/db/routines/account/functions/myUser_hasRole.sql b/db/routines/account/functions/myUser_hasRole.sql index 53fd143fd..8cc8aafb5 100644 --- a/db/routines/account/functions/myUser_hasRole.sql +++ b/db/routines/account/functions/myUser_hasRole.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`myUser_hasRole`(vRoleName VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`myUser_hasRole`(vRoleName VARCHAR(255)) RETURNS tinyint(1) DETERMINISTIC BEGIN diff --git a/db/routines/account/functions/myUser_hasRoleId.sql b/db/routines/account/functions/myUser_hasRoleId.sql index fd8b3fb19..d059b095d 100644 --- a/db/routines/account/functions/myUser_hasRoleId.sql +++ b/db/routines/account/functions/myUser_hasRoleId.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`myUser_hasRoleId`(vRoleId INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`myUser_hasRoleId`(vRoleId INT) RETURNS tinyint(1) DETERMINISTIC BEGIN diff --git a/db/routines/account/functions/myUser_hasRoutinePriv.sql b/db/routines/account/functions/myUser_hasRoutinePriv.sql index 517e36f5c..9e9563a5f 100644 --- a/db/routines/account/functions/myUser_hasRoutinePriv.sql +++ b/db/routines/account/functions/myUser_hasRoutinePriv.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`myUser_hasRoutinePriv`(vType ENUM('PROCEDURE', 'FUNCTION'), +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`myUser_hasRoutinePriv`(vType ENUM('PROCEDURE', 'FUNCTION'), vChain VARCHAR(100) ) RETURNS tinyint(1) diff --git a/db/routines/account/functions/passwordGenerate.sql b/db/routines/account/functions/passwordGenerate.sql index a4cff0ab9..952a8912c 100644 --- a/db/routines/account/functions/passwordGenerate.sql +++ b/db/routines/account/functions/passwordGenerate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`passwordGenerate`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`passwordGenerate`() RETURNS text CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/account/functions/toUnixDays.sql b/db/routines/account/functions/toUnixDays.sql index 931c29cb0..db908060b 100644 --- a/db/routines/account/functions/toUnixDays.sql +++ b/db/routines/account/functions/toUnixDays.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`toUnixDays`(vDate DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`toUnixDays`(vDate DATE) RETURNS int(11) DETERMINISTIC BEGIN diff --git a/db/routines/account/functions/user_getMysqlRole.sql b/db/routines/account/functions/user_getMysqlRole.sql index e50726480..91540bc6b 100644 --- a/db/routines/account/functions/user_getMysqlRole.sql +++ b/db/routines/account/functions/user_getMysqlRole.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`user_getMysqlRole`(vUserName VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`user_getMysqlRole`(vUserName VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci DETERMINISTIC BEGIN diff --git a/db/routines/account/functions/user_getNameFromId.sql b/db/routines/account/functions/user_getNameFromId.sql index 27ea434e8..b06facd7a 100644 --- a/db/routines/account/functions/user_getNameFromId.sql +++ b/db/routines/account/functions/user_getNameFromId.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`user_getNameFromId`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`user_getNameFromId`(vSelf INT) RETURNS varchar(30) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci DETERMINISTIC BEGIN diff --git a/db/routines/account/functions/user_hasPriv.sql b/db/routines/account/functions/user_hasPriv.sql index fc74b197a..83bdfaa19 100644 --- a/db/routines/account/functions/user_hasPriv.sql +++ b/db/routines/account/functions/user_hasPriv.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`user_hasPriv`(vChain VARCHAR(100), +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`user_hasPriv`(vChain VARCHAR(100), vPrivilege ENUM('SELECT','INSERT','UPDATE','DELETE'), vUserFk INT ) diff --git a/db/routines/account/functions/user_hasRole.sql b/db/routines/account/functions/user_hasRole.sql index 71bd7bcae..fb88efeec 100644 --- a/db/routines/account/functions/user_hasRole.sql +++ b/db/routines/account/functions/user_hasRole.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`user_hasRole`(vUserName VARCHAR(255), vRoleName VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`user_hasRole`(vUserName VARCHAR(255), vRoleName VARCHAR(255)) RETURNS tinyint(1) DETERMINISTIC BEGIN diff --git a/db/routines/account/functions/user_hasRoleId.sql b/db/routines/account/functions/user_hasRoleId.sql index 1ba5fae75..a35624d3d 100644 --- a/db/routines/account/functions/user_hasRoleId.sql +++ b/db/routines/account/functions/user_hasRoleId.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`user_hasRoleId`(vUser VARCHAR(255), vRoleId INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`user_hasRoleId`(vUser VARCHAR(255), vRoleId INT) RETURNS tinyint(1) DETERMINISTIC BEGIN diff --git a/db/routines/account/functions/user_hasRoutinePriv.sql b/db/routines/account/functions/user_hasRoutinePriv.sql index b19ed6c2a..6f87f160c 100644 --- a/db/routines/account/functions/user_hasRoutinePriv.sql +++ b/db/routines/account/functions/user_hasRoutinePriv.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `account`.`user_hasRoutinePriv`(vType ENUM('PROCEDURE', 'FUNCTION'), +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `account`.`user_hasRoutinePriv`(vType ENUM('PROCEDURE', 'FUNCTION'), vChain VARCHAR(100), vUserFk INT ) diff --git a/db/routines/account/procedures/account_enable.sql b/db/routines/account/procedures/account_enable.sql index 9441e46c8..9f43c97a3 100644 --- a/db/routines/account/procedures/account_enable.sql +++ b/db/routines/account/procedures/account_enable.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`account_enable`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`account_enable`(vSelf INT) BEGIN /** * Enables an account and sets up email configuration. diff --git a/db/routines/account/procedures/myUser_login.sql b/db/routines/account/procedures/myUser_login.sql index 013dc55d7..be547292e 100644 --- a/db/routines/account/procedures/myUser_login.sql +++ b/db/routines/account/procedures/myUser_login.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`myUser_login`(vUserName VARCHAR(255), vPassword VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`myUser_login`(vUserName VARCHAR(255), vPassword VARCHAR(255)) READS SQL DATA BEGIN /** diff --git a/db/routines/account/procedures/myUser_loginWithKey.sql b/db/routines/account/procedures/myUser_loginWithKey.sql index dab21e433..67d8c9923 100644 --- a/db/routines/account/procedures/myUser_loginWithKey.sql +++ b/db/routines/account/procedures/myUser_loginWithKey.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`myUser_loginWithKey`(vUserName VARCHAR(255), vKey VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`myUser_loginWithKey`(vUserName VARCHAR(255), vKey VARCHAR(255)) READS SQL DATA BEGIN /** diff --git a/db/routines/account/procedures/myUser_loginWithName.sql b/db/routines/account/procedures/myUser_loginWithName.sql index c71b7ae7b..522da77dd 100644 --- a/db/routines/account/procedures/myUser_loginWithName.sql +++ b/db/routines/account/procedures/myUser_loginWithName.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`myUser_loginWithName`(vUserName VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`myUser_loginWithName`(vUserName VARCHAR(255)) READS SQL DATA BEGIN /** diff --git a/db/routines/account/procedures/myUser_logout.sql b/db/routines/account/procedures/myUser_logout.sql index 8740a1b25..a1d7db361 100644 --- a/db/routines/account/procedures/myUser_logout.sql +++ b/db/routines/account/procedures/myUser_logout.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`myUser_logout`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`myUser_logout`() BEGIN /** * Logouts the user. diff --git a/db/routines/account/procedures/role_checkName.sql b/db/routines/account/procedures/role_checkName.sql index 5f5a8b845..55d9d80a9 100644 --- a/db/routines/account/procedures/role_checkName.sql +++ b/db/routines/account/procedures/role_checkName.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`role_checkName`(vRoleName VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`role_checkName`(vRoleName VARCHAR(255)) BEGIN /** * Checks that role name meets the necessary syntax requirements, otherwise it diff --git a/db/routines/account/procedures/role_getDescendents.sql b/db/routines/account/procedures/role_getDescendents.sql index fcc9536fd..ecd4a8790 100644 --- a/db/routines/account/procedures/role_getDescendents.sql +++ b/db/routines/account/procedures/role_getDescendents.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`role_getDescendents`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`role_getDescendents`(vSelf INT) BEGIN /** * Gets the identifiers of all the subroles implemented by a role (Including diff --git a/db/routines/account/procedures/role_sync.sql b/db/routines/account/procedures/role_sync.sql index 645f1f614..139193a31 100644 --- a/db/routines/account/procedures/role_sync.sql +++ b/db/routines/account/procedures/role_sync.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`role_sync`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`role_sync`() BEGIN /** * Synchronize the @roleRole table with the current role hierarchy. This diff --git a/db/routines/account/procedures/role_syncPrivileges.sql b/db/routines/account/procedures/role_syncPrivileges.sql index cfdb81593..cf265b4bd 100644 --- a/db/routines/account/procedures/role_syncPrivileges.sql +++ b/db/routines/account/procedures/role_syncPrivileges.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`role_syncPrivileges`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`role_syncPrivileges`() BEGIN /** * Synchronizes permissions of MySQL role users based on role hierarchy. diff --git a/db/routines/account/procedures/user_checkName.sql b/db/routines/account/procedures/user_checkName.sql index ca12a67a2..6fab17361 100644 --- a/db/routines/account/procedures/user_checkName.sql +++ b/db/routines/account/procedures/user_checkName.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`user_checkName`(vUserName VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`user_checkName`(vUserName VARCHAR(255)) BEGIN /** * Checks that username meets the necessary syntax requirements, otherwise it diff --git a/db/routines/account/procedures/user_checkPassword.sql b/db/routines/account/procedures/user_checkPassword.sql index d696c51cd..eb0990533 100644 --- a/db/routines/account/procedures/user_checkPassword.sql +++ b/db/routines/account/procedures/user_checkPassword.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `account`.`user_checkPassword`(vPassword VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `account`.`user_checkPassword`(vPassword VARCHAR(255)) BEGIN /** * Comprueba si la contraseña cumple los requisitos de seguridad diff --git a/db/routines/account/triggers/account_afterDelete.sql b/db/routines/account/triggers/account_afterDelete.sql index 5249b358d..be0e5901f 100644 --- a/db/routines/account/triggers/account_afterDelete.sql +++ b/db/routines/account/triggers/account_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`account_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`account_afterDelete` AFTER DELETE ON `account` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/account_afterInsert.sql b/db/routines/account/triggers/account_afterInsert.sql index 0fe35867e..be2959ab6 100644 --- a/db/routines/account/triggers/account_afterInsert.sql +++ b/db/routines/account/triggers/account_afterInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`account_afterInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`account_afterInsert` AFTER INSERT ON `account` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/account_beforeInsert.sql b/db/routines/account/triggers/account_beforeInsert.sql index b4e9f06f7..43b611990 100644 --- a/db/routines/account/triggers/account_beforeInsert.sql +++ b/db/routines/account/triggers/account_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`account_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`account_beforeInsert` BEFORE INSERT ON `account` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/account_beforeUpdate.sql b/db/routines/account/triggers/account_beforeUpdate.sql index 05d3ec3ae..bbcea028d 100644 --- a/db/routines/account/triggers/account_beforeUpdate.sql +++ b/db/routines/account/triggers/account_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`account_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`account_beforeUpdate` BEFORE UPDATE ON `account` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailAliasAccount_afterDelete.sql b/db/routines/account/triggers/mailAliasAccount_afterDelete.sql index 32b5b620e..83af7169c 100644 --- a/db/routines/account/triggers/mailAliasAccount_afterDelete.sql +++ b/db/routines/account/triggers/mailAliasAccount_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailAliasAccount_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailAliasAccount_afterDelete` AFTER DELETE ON `mailAliasAccount` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailAliasAccount_beforeInsert.sql b/db/routines/account/triggers/mailAliasAccount_beforeInsert.sql index 171c7bc7a..a435832f2 100644 --- a/db/routines/account/triggers/mailAliasAccount_beforeInsert.sql +++ b/db/routines/account/triggers/mailAliasAccount_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailAliasAccount_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailAliasAccount_beforeInsert` BEFORE INSERT ON `mailAliasAccount` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailAliasAccount_beforeUpdate.sql b/db/routines/account/triggers/mailAliasAccount_beforeUpdate.sql index 4d05fc32a..471a34900 100644 --- a/db/routines/account/triggers/mailAliasAccount_beforeUpdate.sql +++ b/db/routines/account/triggers/mailAliasAccount_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailAliasAccount_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailAliasAccount_beforeUpdate` BEFORE UPDATE ON `mailAliasAccount` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailAlias_afterDelete.sql b/db/routines/account/triggers/mailAlias_afterDelete.sql index ec01b1a4b..fe944246d 100644 --- a/db/routines/account/triggers/mailAlias_afterDelete.sql +++ b/db/routines/account/triggers/mailAlias_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailAlias_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailAlias_afterDelete` AFTER DELETE ON `mailAlias` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailAlias_beforeInsert.sql b/db/routines/account/triggers/mailAlias_beforeInsert.sql index 02f900f56..37a9546ca 100644 --- a/db/routines/account/triggers/mailAlias_beforeInsert.sql +++ b/db/routines/account/triggers/mailAlias_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailAlias_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailAlias_beforeInsert` BEFORE INSERT ON `mailAlias` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailAlias_beforeUpdate.sql b/db/routines/account/triggers/mailAlias_beforeUpdate.sql index 0f14dcf3f..e3940cfda 100644 --- a/db/routines/account/triggers/mailAlias_beforeUpdate.sql +++ b/db/routines/account/triggers/mailAlias_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailAlias_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailAlias_beforeUpdate` BEFORE UPDATE ON `mailAlias` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailForward_afterDelete.sql b/db/routines/account/triggers/mailForward_afterDelete.sql index c1eef93de..cb02b746d 100644 --- a/db/routines/account/triggers/mailForward_afterDelete.sql +++ b/db/routines/account/triggers/mailForward_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailForward_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailForward_afterDelete` AFTER DELETE ON `mailForward` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailForward_beforeInsert.sql b/db/routines/account/triggers/mailForward_beforeInsert.sql index bf5bd1369..bc4e5ef17 100644 --- a/db/routines/account/triggers/mailForward_beforeInsert.sql +++ b/db/routines/account/triggers/mailForward_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailForward_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailForward_beforeInsert` BEFORE INSERT ON `mailForward` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/mailForward_beforeUpdate.sql b/db/routines/account/triggers/mailForward_beforeUpdate.sql index 590b20347..88594979a 100644 --- a/db/routines/account/triggers/mailForward_beforeUpdate.sql +++ b/db/routines/account/triggers/mailForward_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`mailForward_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailForward_beforeUpdate` BEFORE UPDATE ON `mailForward` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/roleInherit_afterDelete.sql b/db/routines/account/triggers/roleInherit_afterDelete.sql index 84e2cbc67..c7c82eedb 100644 --- a/db/routines/account/triggers/roleInherit_afterDelete.sql +++ b/db/routines/account/triggers/roleInherit_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`roleInherit_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`roleInherit_afterDelete` AFTER DELETE ON `roleInherit` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/roleInherit_beforeInsert.sql b/db/routines/account/triggers/roleInherit_beforeInsert.sql index a964abecb..77932c12d 100644 --- a/db/routines/account/triggers/roleInherit_beforeInsert.sql +++ b/db/routines/account/triggers/roleInherit_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`roleInherit_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`roleInherit_beforeInsert` BEFORE INSERT ON `roleInherit` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/roleInherit_beforeUpdate.sql b/db/routines/account/triggers/roleInherit_beforeUpdate.sql index 05b2ae8b5..05aef0b95 100644 --- a/db/routines/account/triggers/roleInherit_beforeUpdate.sql +++ b/db/routines/account/triggers/roleInherit_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`roleInherit_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`roleInherit_beforeUpdate` BEFORE UPDATE ON `roleInherit` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/role_afterDelete.sql b/db/routines/account/triggers/role_afterDelete.sql index 731f1c978..be382cba6 100644 --- a/db/routines/account/triggers/role_afterDelete.sql +++ b/db/routines/account/triggers/role_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`role_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`role_afterDelete` AFTER DELETE ON `role` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/role_beforeInsert.sql b/db/routines/account/triggers/role_beforeInsert.sql index 35e493bf7..f68a211a7 100644 --- a/db/routines/account/triggers/role_beforeInsert.sql +++ b/db/routines/account/triggers/role_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`role_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`role_beforeInsert` BEFORE INSERT ON `role` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/role_beforeUpdate.sql b/db/routines/account/triggers/role_beforeUpdate.sql index 588d2271d..a2f471b64 100644 --- a/db/routines/account/triggers/role_beforeUpdate.sql +++ b/db/routines/account/triggers/role_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`role_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`role_beforeUpdate` BEFORE UPDATE ON `role` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/user_afterDelete.sql b/db/routines/account/triggers/user_afterDelete.sql index 710549cc6..eabe60d8c 100644 --- a/db/routines/account/triggers/user_afterDelete.sql +++ b/db/routines/account/triggers/user_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`user_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`user_afterDelete` AFTER DELETE ON `user` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/user_afterInsert.sql b/db/routines/account/triggers/user_afterInsert.sql index 2cc4da49b..31f992c16 100644 --- a/db/routines/account/triggers/user_afterInsert.sql +++ b/db/routines/account/triggers/user_afterInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`user_afterInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`user_afterInsert` AFTER INSERT ON `user` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/user_afterUpdate.sql b/db/routines/account/triggers/user_afterUpdate.sql index 7e5415ee7..7fb4e644f 100644 --- a/db/routines/account/triggers/user_afterUpdate.sql +++ b/db/routines/account/triggers/user_afterUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`user_afterUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`user_afterUpdate` AFTER UPDATE ON `user` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/user_beforeInsert.sql b/db/routines/account/triggers/user_beforeInsert.sql index e15f8faa5..6cafa8b3f 100644 --- a/db/routines/account/triggers/user_beforeInsert.sql +++ b/db/routines/account/triggers/user_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`user_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`user_beforeInsert` BEFORE INSERT ON `user` FOR EACH ROW BEGIN diff --git a/db/routines/account/triggers/user_beforeUpdate.sql b/db/routines/account/triggers/user_beforeUpdate.sql index ae8d648e2..849dfbd91 100644 --- a/db/routines/account/triggers/user_beforeUpdate.sql +++ b/db/routines/account/triggers/user_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `account`.`user_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`user_beforeUpdate` BEFORE UPDATE ON `user` FOR EACH ROW BEGIN diff --git a/db/routines/account/views/accountDovecot.sql b/db/routines/account/views/accountDovecot.sql index d3d03ca64..1e30946f3 100644 --- a/db/routines/account/views/accountDovecot.sql +++ b/db/routines/account/views/accountDovecot.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `account`.`accountDovecot` AS SELECT `u`.`name` AS `name`, diff --git a/db/routines/account/views/emailUser.sql b/db/routines/account/views/emailUser.sql index d6a66719c..dcb435454 100644 --- a/db/routines/account/views/emailUser.sql +++ b/db/routines/account/views/emailUser.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `account`.`emailUser` AS SELECT `u`.`id` AS `userFk`, diff --git a/db/routines/account/views/myRole.sql b/db/routines/account/views/myRole.sql index 036300db5..68364f0bc 100644 --- a/db/routines/account/views/myRole.sql +++ b/db/routines/account/views/myRole.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `account`.`myRole` AS SELECT `r`.`inheritsFrom` AS `id` diff --git a/db/routines/account/views/myUser.sql b/db/routines/account/views/myUser.sql index fc1b04d78..f520d893b 100644 --- a/db/routines/account/views/myUser.sql +++ b/db/routines/account/views/myUser.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `account`.`myUser` AS SELECT `u`.`id` AS `id`, diff --git a/db/routines/bi/procedures/Greuge_Evolution_Add.sql b/db/routines/bi/procedures/Greuge_Evolution_Add.sql index bf5693ad2..6480155cb 100644 --- a/db/routines/bi/procedures/Greuge_Evolution_Add.sql +++ b/db/routines/bi/procedures/Greuge_Evolution_Add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`Greuge_Evolution_Add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`Greuge_Evolution_Add`() BEGIN /* Inserta en la tabla Greuge_Evolution el saldo acumulado de cada cliente, diff --git a/db/routines/bi/procedures/analisis_ventas_evolution_add.sql b/db/routines/bi/procedures/analisis_ventas_evolution_add.sql index bbee190ea..7c2cc5678 100644 --- a/db/routines/bi/procedures/analisis_ventas_evolution_add.sql +++ b/db/routines/bi/procedures/analisis_ventas_evolution_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`analisis_ventas_evolution_add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`analisis_ventas_evolution_add`() BEGIN DECLARE vPreviousPeriod INT; DECLARE vCurrentPeriod INT; diff --git a/db/routines/bi/procedures/analisis_ventas_simple.sql b/db/routines/bi/procedures/analisis_ventas_simple.sql index 597d9bcd4..5c67584ee 100644 --- a/db/routines/bi/procedures/analisis_ventas_simple.sql +++ b/db/routines/bi/procedures/analisis_ventas_simple.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`analisis_ventas_simple`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`analisis_ventas_simple`() BEGIN /** * Vacia y rellena la tabla 'analisis_grafico_simple' desde 'analisis_grafico_ventas' diff --git a/db/routines/bi/procedures/analisis_ventas_update.sql b/db/routines/bi/procedures/analisis_ventas_update.sql index a7bb46387..ef3e165a0 100644 --- a/db/routines/bi/procedures/analisis_ventas_update.sql +++ b/db/routines/bi/procedures/analisis_ventas_update.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`analisis_ventas_update`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`analisis_ventas_update`() BEGIN DECLARE vLastMonth DATE; diff --git a/db/routines/bi/procedures/clean.sql b/db/routines/bi/procedures/clean.sql index 4c3994dd5..a1eb99166 100644 --- a/db/routines/bi/procedures/clean.sql +++ b/db/routines/bi/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`clean`() BEGIN DECLARE vDateShort DATETIME; DECLARE vDateLong DATETIME; diff --git a/db/routines/bi/procedures/defaultersFromDate.sql b/db/routines/bi/procedures/defaultersFromDate.sql index 88828a6e1..bfe133750 100644 --- a/db/routines/bi/procedures/defaultersFromDate.sql +++ b/db/routines/bi/procedures/defaultersFromDate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`defaultersFromDate`(IN vDate DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`defaultersFromDate`(IN vDate DATE) BEGIN SELECT t1.*, c.name Cliente, w.code workerCode, c.payMethodFk pay_met_id, c.dueDay Vencimiento diff --git a/db/routines/bi/procedures/defaulting.sql b/db/routines/bi/procedures/defaulting.sql index db030fa0f..d20232b8b 100644 --- a/db/routines/bi/procedures/defaulting.sql +++ b/db/routines/bi/procedures/defaulting.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`defaulting`(IN `vDate` DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`defaulting`(IN `vDate` DATE) BEGIN DECLARE vDone BOOLEAN; DECLARE vClient INT; diff --git a/db/routines/bi/procedures/defaulting_launcher.sql b/db/routines/bi/procedures/defaulting_launcher.sql index a0df72adf..585abdc09 100644 --- a/db/routines/bi/procedures/defaulting_launcher.sql +++ b/db/routines/bi/procedures/defaulting_launcher.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`defaulting_launcher`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`defaulting_launcher`() BEGIN /** * Calcula la morosidad de los clientes. diff --git a/db/routines/bi/procedures/facturacion_media_anual_update.sql b/db/routines/bi/procedures/facturacion_media_anual_update.sql index 62f5d623d..e8810cc21 100644 --- a/db/routines/bi/procedures/facturacion_media_anual_update.sql +++ b/db/routines/bi/procedures/facturacion_media_anual_update.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`facturacion_media_anual_update`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`facturacion_media_anual_update`() BEGIN TRUNCATE TABLE bs.clientAnnualConsumption; diff --git a/db/routines/bi/procedures/greuge_dif_porte_add.sql b/db/routines/bi/procedures/greuge_dif_porte_add.sql index b86524f59..330ff92b8 100644 --- a/db/routines/bi/procedures/greuge_dif_porte_add.sql +++ b/db/routines/bi/procedures/greuge_dif_porte_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`greuge_dif_porte_add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`greuge_dif_porte_add`() BEGIN /** diff --git a/db/routines/bi/procedures/nigthlyAnalisisVentas.sql b/db/routines/bi/procedures/nigthlyAnalisisVentas.sql index 2568600ae..c21a3bae5 100644 --- a/db/routines/bi/procedures/nigthlyAnalisisVentas.sql +++ b/db/routines/bi/procedures/nigthlyAnalisisVentas.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`nigthlyAnalisisVentas`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`nigthlyAnalisisVentas`() BEGIN CALL analisis_ventas_update; CALL analisis_ventas_simple; diff --git a/db/routines/bi/procedures/rutasAnalyze.sql b/db/routines/bi/procedures/rutasAnalyze.sql index f76ac2dd9..e277968bf 100644 --- a/db/routines/bi/procedures/rutasAnalyze.sql +++ b/db/routines/bi/procedures/rutasAnalyze.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`rutasAnalyze`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`rutasAnalyze`( vDatedFrom DATE, vDatedTo DATE ) diff --git a/db/routines/bi/procedures/rutasAnalyze_launcher.sql b/db/routines/bi/procedures/rutasAnalyze_launcher.sql index 9cc6f0eeb..02f5e1b9c 100644 --- a/db/routines/bi/procedures/rutasAnalyze_launcher.sql +++ b/db/routines/bi/procedures/rutasAnalyze_launcher.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bi`.`rutasAnalyze_launcher`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bi`.`rutasAnalyze_launcher`() BEGIN /** * Call rutasAnalyze diff --git a/db/routines/bi/views/analisis_grafico_ventas.sql b/db/routines/bi/views/analisis_grafico_ventas.sql index 566f24c2e..f5956f27a 100644 --- a/db/routines/bi/views/analisis_grafico_ventas.sql +++ b/db/routines/bi/views/analisis_grafico_ventas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`analisis_grafico_ventas` AS SELECT `bi`.`analisis_ventas`.`Año` AS `Año`, diff --git a/db/routines/bi/views/analisis_ventas_simple.sql b/db/routines/bi/views/analisis_ventas_simple.sql index 8651f3d05..109378c8a 100644 --- a/db/routines/bi/views/analisis_ventas_simple.sql +++ b/db/routines/bi/views/analisis_ventas_simple.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`analisis_ventas_simple` AS SELECT `bi`.`analisis_ventas`.`Año` AS `Año`, diff --git a/db/routines/bi/views/claims_ratio.sql b/db/routines/bi/views/claims_ratio.sql index 39ceae56d..cfd9b6231 100644 --- a/db/routines/bi/views/claims_ratio.sql +++ b/db/routines/bi/views/claims_ratio.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`claims_ratio` AS SELECT `cr`.`clientFk` AS `Id_Cliente`, diff --git a/db/routines/bi/views/customerRiskOverdue.sql b/db/routines/bi/views/customerRiskOverdue.sql index 8b8deb3ca..27ef7ca47 100644 --- a/db/routines/bi/views/customerRiskOverdue.sql +++ b/db/routines/bi/views/customerRiskOverdue.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`customerRiskOverdue` AS SELECT `cr`.`clientFk` AS `customer_id`, diff --git a/db/routines/bi/views/defaulters.sql b/db/routines/bi/views/defaulters.sql index e5922a746..927503245 100644 --- a/db/routines/bi/views/defaulters.sql +++ b/db/routines/bi/views/defaulters.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`defaulters` AS SELECT `d`.`clientFk` AS `client`, diff --git a/db/routines/bi/views/facturacion_media_anual.sql b/db/routines/bi/views/facturacion_media_anual.sql index 8b1cde492..2e0c2ca6e 100644 --- a/db/routines/bi/views/facturacion_media_anual.sql +++ b/db/routines/bi/views/facturacion_media_anual.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`facturacion_media_anual` AS SELECT `cac`.`clientFk` AS `Id_Cliente`, diff --git a/db/routines/bi/views/rotacion.sql b/db/routines/bi/views/rotacion.sql index 71674fb65..65a5db923 100644 --- a/db/routines/bi/views/rotacion.sql +++ b/db/routines/bi/views/rotacion.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`rotacion` AS SELECT `ic`.`itemFk` AS `Id_Article`, diff --git a/db/routines/bi/views/tarifa_componentes.sql b/db/routines/bi/views/tarifa_componentes.sql index 614e84eb9..42ea9fa81 100644 --- a/db/routines/bi/views/tarifa_componentes.sql +++ b/db/routines/bi/views/tarifa_componentes.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`tarifa_componentes` AS SELECT `c`.`id` AS `Id_Componente`, diff --git a/db/routines/bi/views/tarifa_componentes_series.sql b/db/routines/bi/views/tarifa_componentes_series.sql index 508a78fb3..ed2f8e29a 100644 --- a/db/routines/bi/views/tarifa_componentes_series.sql +++ b/db/routines/bi/views/tarifa_componentes_series.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bi`.`tarifa_componentes_series` AS SELECT `ct`.`id` AS `tarifa_componentes_series_id`, diff --git a/db/routines/bs/events/clientDied_recalc.sql b/db/routines/bs/events/clientDied_recalc.sql index 9a9a5ebb3..db912658a 100644 --- a/db/routines/bs/events/clientDied_recalc.sql +++ b/db/routines/bs/events/clientDied_recalc.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `bs`.`clientDied_recalc` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `bs`.`clientDied_recalc` ON SCHEDULE EVERY 1 DAY STARTS '2023-06-01 03:00:00.000' ON COMPLETION PRESERVE diff --git a/db/routines/bs/events/inventoryDiscrepancy_launch.sql b/db/routines/bs/events/inventoryDiscrepancy_launch.sql index 015425dfd..3ee165846 100644 --- a/db/routines/bs/events/inventoryDiscrepancy_launch.sql +++ b/db/routines/bs/events/inventoryDiscrepancy_launch.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `bs`.`inventoryDiscrepancy_launch` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `bs`.`inventoryDiscrepancy_launch` ON SCHEDULE EVERY 15 MINUTE STARTS '2023-07-18 00:00:00.000' ON COMPLETION PRESERVE diff --git a/db/routines/bs/events/nightTask_launchAll.sql b/db/routines/bs/events/nightTask_launchAll.sql index f1f20f1cc..1a55ca1a3 100644 --- a/db/routines/bs/events/nightTask_launchAll.sql +++ b/db/routines/bs/events/nightTask_launchAll.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `bs`.`nightTask_launchAll` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `bs`.`nightTask_launchAll` ON SCHEDULE EVERY 1 DAY STARTS '2022-02-08 04:14:00.000' ON COMPLETION PRESERVE diff --git a/db/routines/bs/functions/tramo.sql b/db/routines/bs/functions/tramo.sql index a45860409..0415cfc92 100644 --- a/db/routines/bs/functions/tramo.sql +++ b/db/routines/bs/functions/tramo.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `bs`.`tramo`(vDateTime DATETIME) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `bs`.`tramo`(vDateTime DATETIME) RETURNS varchar(20) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci NOT DETERMINISTIC NO SQL diff --git a/db/routines/bs/procedures/campaignComparative.sql b/db/routines/bs/procedures/campaignComparative.sql index 27957976a..6b4b983b5 100644 --- a/db/routines/bs/procedures/campaignComparative.sql +++ b/db/routines/bs/procedures/campaignComparative.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`campaignComparative`(vDateFrom DATE, vDateTo DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`campaignComparative`(vDateFrom DATE, vDateTo DATE) BEGIN SELECT workerName, diff --git a/db/routines/bs/procedures/carteras_add.sql b/db/routines/bs/procedures/carteras_add.sql index 8c806e1d9..5143b4bb5 100644 --- a/db/routines/bs/procedures/carteras_add.sql +++ b/db/routines/bs/procedures/carteras_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`carteras_add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`carteras_add`() BEGIN /** * Inserta en la tabla @bs.carteras las ventas desde el año pasado diff --git a/db/routines/bs/procedures/clean.sql b/db/routines/bs/procedures/clean.sql index a1d393122..eff2faadb 100644 --- a/db/routines/bs/procedures/clean.sql +++ b/db/routines/bs/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`clean`() BEGIN DECLARE vOneYearAgo DATE DEFAULT util.VN_CURDATE() - INTERVAL 1 YEAR; diff --git a/db/routines/bs/procedures/clientDied_recalc.sql b/db/routines/bs/procedures/clientDied_recalc.sql index d76c61968..1b5cb5ac8 100644 --- a/db/routines/bs/procedures/clientDied_recalc.sql +++ b/db/routines/bs/procedures/clientDied_recalc.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`clientDied_recalc`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`clientDied_recalc`( vDays INT, vCountryCode VARCHAR(2) ) diff --git a/db/routines/bs/procedures/clientNewBorn_recalc.sql b/db/routines/bs/procedures/clientNewBorn_recalc.sql index c3913a5f5..1c89b5745 100644 --- a/db/routines/bs/procedures/clientNewBorn_recalc.sql +++ b/db/routines/bs/procedures/clientNewBorn_recalc.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`clientNewBorn_recalc`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`clientNewBorn_recalc`() BLOCK1: BEGIN DECLARE vClientFk INT; diff --git a/db/routines/bs/procedures/compradores_evolution_add.sql b/db/routines/bs/procedures/compradores_evolution_add.sql index 1049122a0..e9b073e28 100644 --- a/db/routines/bs/procedures/compradores_evolution_add.sql +++ b/db/routines/bs/procedures/compradores_evolution_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`compradores_evolution_add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`compradores_evolution_add`() BEGIN /** * Inserta en la tabla compradores_evolution las ventas acumuladas en los ultimos 365 dias diff --git a/db/routines/bs/procedures/fondo_evolution_add.sql b/db/routines/bs/procedures/fondo_evolution_add.sql index 22f73ff8d..3ca91e647 100644 --- a/db/routines/bs/procedures/fondo_evolution_add.sql +++ b/db/routines/bs/procedures/fondo_evolution_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`fondo_evolution_add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`fondo_evolution_add`() BEGIN /** * Inserta en la tabla fondo_maniobra los saldos acumulados en los ultimos 365 dias diff --git a/db/routines/bs/procedures/fruitsEvolution.sql b/db/routines/bs/procedures/fruitsEvolution.sql index 15ce35ebe..c689f4b76 100644 --- a/db/routines/bs/procedures/fruitsEvolution.sql +++ b/db/routines/bs/procedures/fruitsEvolution.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`fruitsEvolution`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`fruitsEvolution`() BEGIN select Id_Cliente, Cliente, count(semana) as semanas, (w.code IS NOT NULL) isWorker diff --git a/db/routines/bs/procedures/indicatorsUpdate.sql b/db/routines/bs/procedures/indicatorsUpdate.sql index 958aae017..d66e52a61 100644 --- a/db/routines/bs/procedures/indicatorsUpdate.sql +++ b/db/routines/bs/procedures/indicatorsUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`indicatorsUpdate`(vDated DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`indicatorsUpdate`(vDated DATE) BEGIN DECLARE oneYearBefore DATE DEFAULT TIMESTAMPADD(YEAR,-1, vDated); diff --git a/db/routines/bs/procedures/indicatorsUpdateLauncher.sql b/db/routines/bs/procedures/indicatorsUpdateLauncher.sql index b4f768522..8ede28ec8 100644 --- a/db/routines/bs/procedures/indicatorsUpdateLauncher.sql +++ b/db/routines/bs/procedures/indicatorsUpdateLauncher.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`indicatorsUpdateLauncher`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`indicatorsUpdateLauncher`() BEGIN DECLARE vDated DATE; diff --git a/db/routines/bs/procedures/inventoryDiscrepancyDetail_replace.sql b/db/routines/bs/procedures/inventoryDiscrepancyDetail_replace.sql index 62ab85368..863005373 100644 --- a/db/routines/bs/procedures/inventoryDiscrepancyDetail_replace.sql +++ b/db/routines/bs/procedures/inventoryDiscrepancyDetail_replace.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`inventoryDiscrepancyDetail_replace`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`inventoryDiscrepancyDetail_replace`() BEGIN /** * Replace all records in table inventoryDiscrepancyDetail and insert new diff --git a/db/routines/bs/procedures/m3Add.sql b/db/routines/bs/procedures/m3Add.sql index 63159815b..0ec2c8ce2 100644 --- a/db/routines/bs/procedures/m3Add.sql +++ b/db/routines/bs/procedures/m3Add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`m3Add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`m3Add`() BEGIN DECLARE datSTART DATE; diff --git a/db/routines/bs/procedures/manaCustomerUpdate.sql b/db/routines/bs/procedures/manaCustomerUpdate.sql index f2bcc942e..e9ba70423 100644 --- a/db/routines/bs/procedures/manaCustomerUpdate.sql +++ b/db/routines/bs/procedures/manaCustomerUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`manaCustomerUpdate`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`manaCustomerUpdate`() BEGIN DECLARE vToDated DATE; DECLARE vFromDated DATE; diff --git a/db/routines/bs/procedures/manaSpellers_actualize.sql b/db/routines/bs/procedures/manaSpellers_actualize.sql index 818ef40a6..20b0f84f8 100644 --- a/db/routines/bs/procedures/manaSpellers_actualize.sql +++ b/db/routines/bs/procedures/manaSpellers_actualize.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`manaSpellers_actualize`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`manaSpellers_actualize`() BEGIN /** * Recalcula el valor del campo con el modificador de precio diff --git a/db/routines/bs/procedures/nightTask_launchAll.sql b/db/routines/bs/procedures/nightTask_launchAll.sql index 9c3788b50..e61e88bb6 100644 --- a/db/routines/bs/procedures/nightTask_launchAll.sql +++ b/db/routines/bs/procedures/nightTask_launchAll.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`nightTask_launchAll`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`nightTask_launchAll`() BEGIN /** * Runs all nightly tasks. diff --git a/db/routines/bs/procedures/nightTask_launchTask.sql b/db/routines/bs/procedures/nightTask_launchTask.sql index 042df9d5d..aa4c540e8 100644 --- a/db/routines/bs/procedures/nightTask_launchTask.sql +++ b/db/routines/bs/procedures/nightTask_launchTask.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`nightTask_launchTask`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`nightTask_launchTask`( vSchema VARCHAR(255), vProcedure VARCHAR(255), OUT vError VARCHAR(255), diff --git a/db/routines/bs/procedures/payMethodClientAdd.sql b/db/routines/bs/procedures/payMethodClientAdd.sql index 6ed39538a..0c19f453a 100644 --- a/db/routines/bs/procedures/payMethodClientAdd.sql +++ b/db/routines/bs/procedures/payMethodClientAdd.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`payMethodClientAdd`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`payMethodClientAdd`() BEGIN INSERT IGNORE INTO `bs`.`payMethodClient` (dated, payMethodFk, clientFk) SELECT util.VN_CURDATE(), c.payMethodFk, c.id diff --git a/db/routines/bs/procedures/saleGraphic.sql b/db/routines/bs/procedures/saleGraphic.sql index cdf04ed19..e1e387980 100644 --- a/db/routines/bs/procedures/saleGraphic.sql +++ b/db/routines/bs/procedures/saleGraphic.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`saleGraphic`(IN vItemFk INT, IN vTypeFk INT, IN vCategoryFk INT, IN vFromDate DATE, +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`saleGraphic`(IN vItemFk INT, IN vTypeFk INT, IN vCategoryFk INT, IN vFromDate DATE, IN vToDate DATE, IN vProducerFk INT) BEGIN diff --git a/db/routines/bs/procedures/salePersonEvolutionAdd.sql b/db/routines/bs/procedures/salePersonEvolutionAdd.sql index 8894e8546..33e31b699 100644 --- a/db/routines/bs/procedures/salePersonEvolutionAdd.sql +++ b/db/routines/bs/procedures/salePersonEvolutionAdd.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`salePersonEvolutionAdd`(IN vDateStart DATETIME) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`salePersonEvolutionAdd`(IN vDateStart DATETIME) BEGIN DELETE FROM bs.salePersonEvolution WHERE dated <= DATE_SUB(util.VN_CURDATE(), INTERVAL 1 YEAR); diff --git a/db/routines/bs/procedures/sale_add.sql b/db/routines/bs/procedures/sale_add.sql index 37f4f41c4..c50d27b81 100644 --- a/db/routines/bs/procedures/sale_add.sql +++ b/db/routines/bs/procedures/sale_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`sale_add`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`sale_add`( IN vStarted DATE, IN vEnded DATE ) diff --git a/db/routines/bs/procedures/salesByItemTypeDay_add.sql b/db/routines/bs/procedures/salesByItemTypeDay_add.sql index fe7d36dc8..5c12081a0 100644 --- a/db/routines/bs/procedures/salesByItemTypeDay_add.sql +++ b/db/routines/bs/procedures/salesByItemTypeDay_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`salesByItemTypeDay_add`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`salesByItemTypeDay_add`( vDateStart DATE, vDateEnd DATE ) diff --git a/db/routines/bs/procedures/salesByItemTypeDay_addLauncher.sql b/db/routines/bs/procedures/salesByItemTypeDay_addLauncher.sql index c2b3f4b48..63677def6 100644 --- a/db/routines/bs/procedures/salesByItemTypeDay_addLauncher.sql +++ b/db/routines/bs/procedures/salesByItemTypeDay_addLauncher.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`salesByItemTypeDay_addLauncher`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`salesByItemTypeDay_addLauncher`() BEGIN CALL bs.salesByItemTypeDay_add(util.VN_CURDATE() - INTERVAL 30 DAY, util.VN_CURDATE()); END$$ diff --git a/db/routines/bs/procedures/salesByclientSalesPerson_add.sql b/db/routines/bs/procedures/salesByclientSalesPerson_add.sql index 4e0af84bf..eb441c07b 100644 --- a/db/routines/bs/procedures/salesByclientSalesPerson_add.sql +++ b/db/routines/bs/procedures/salesByclientSalesPerson_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`salesByclientSalesPerson_add`(vDatedFrom DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`salesByclientSalesPerson_add`(vDatedFrom DATE) BEGIN /** * Agrupa las ventas por cliente/comercial/fecha en la tabla bs.salesByclientSalesPerson diff --git a/db/routines/bs/procedures/salesPersonEvolution_add.sql b/db/routines/bs/procedures/salesPersonEvolution_add.sql index 3474352c3..ea150e182 100644 --- a/db/routines/bs/procedures/salesPersonEvolution_add.sql +++ b/db/routines/bs/procedures/salesPersonEvolution_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`salesPersonEvolution_add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`salesPersonEvolution_add`() BEGIN /** * Calcula los datos para los gráficos de evolución agrupado por salesPersonFk y día. diff --git a/db/routines/bs/procedures/sales_addLauncher.sql b/db/routines/bs/procedures/sales_addLauncher.sql index 403e76bd5..38cb5e219 100644 --- a/db/routines/bs/procedures/sales_addLauncher.sql +++ b/db/routines/bs/procedures/sales_addLauncher.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`sales_addLauncher`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`sales_addLauncher`() BEGIN /** * Añade las ventas a la tabla bs.sale que se realizaron desde hace un mes hasta hoy diff --git a/db/routines/bs/procedures/vendedores_add_launcher.sql b/db/routines/bs/procedures/vendedores_add_launcher.sql index 562b02c5c..c0718a659 100644 --- a/db/routines/bs/procedures/vendedores_add_launcher.sql +++ b/db/routines/bs/procedures/vendedores_add_launcher.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`vendedores_add_launcher`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`vendedores_add_launcher`() BEGIN CALL bs.salesByclientSalesPerson_add(util.VN_CURDATE()- INTERVAL 45 DAY); diff --git a/db/routines/bs/procedures/ventas_contables_add.sql b/db/routines/bs/procedures/ventas_contables_add.sql index ef57d40d7..72b0c0fee 100644 --- a/db/routines/bs/procedures/ventas_contables_add.sql +++ b/db/routines/bs/procedures/ventas_contables_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`ventas_contables_add`(IN vYear INT, IN vMonth INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`ventas_contables_add`(IN vYear INT, IN vMonth INT) BEGIN /** diff --git a/db/routines/bs/procedures/ventas_contables_add_launcher.sql b/db/routines/bs/procedures/ventas_contables_add_launcher.sql index e4b9c89a0..ac74c47bf 100644 --- a/db/routines/bs/procedures/ventas_contables_add_launcher.sql +++ b/db/routines/bs/procedures/ventas_contables_add_launcher.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`ventas_contables_add_launcher`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`ventas_contables_add_launcher`() BEGIN /** diff --git a/db/routines/bs/procedures/waste_addSales.sql b/db/routines/bs/procedures/waste_addSales.sql index 018a6d516..20eee5d49 100644 --- a/db/routines/bs/procedures/waste_addSales.sql +++ b/db/routines/bs/procedures/waste_addSales.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`waste_addSales`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`waste_addSales`() BEGIN DECLARE vDateFrom DATE DEFAULT util.VN_CURDATE() - INTERVAL WEEKDAY(util.VN_CURDATE()) DAY; DECLARE vDateTo DATE DEFAULT vDateFrom + INTERVAL 6 DAY; diff --git a/db/routines/bs/procedures/workerLabour_getData.sql b/db/routines/bs/procedures/workerLabour_getData.sql index 28e80365a..1f5a39fe0 100644 --- a/db/routines/bs/procedures/workerLabour_getData.sql +++ b/db/routines/bs/procedures/workerLabour_getData.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`workerLabour_getData`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`workerLabour_getData`() BEGIN /** * Carga los datos de la plantilla de trabajadores, altas y bajas en la tabla workerLabourDataByMonth para facilitar el cálculo del gráfico en grafana. diff --git a/db/routines/bs/procedures/workerProductivity_add.sql b/db/routines/bs/procedures/workerProductivity_add.sql index 00d8ba9e8..3d7dbdca9 100644 --- a/db/routines/bs/procedures/workerProductivity_add.sql +++ b/db/routines/bs/procedures/workerProductivity_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `bs`.`workerProductivity_add`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`workerProductivity_add`() BEGIN DECLARE vDateFrom DATE; SELECT DATE_SUB(util.VN_CURDATE(),INTERVAL 30 DAY) INTO vDateFrom; diff --git a/db/routines/bs/triggers/clientNewBorn_beforeUpdate.sql b/db/routines/bs/triggers/clientNewBorn_beforeUpdate.sql index 33e5ad3bd..a88567a21 100644 --- a/db/routines/bs/triggers/clientNewBorn_beforeUpdate.sql +++ b/db/routines/bs/triggers/clientNewBorn_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `bs`.`clientNewBorn_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `bs`.`clientNewBorn_beforeUpdate` BEFORE UPDATE ON `clientNewBorn` FOR EACH ROW BEGIN diff --git a/db/routines/bs/triggers/nightTask_beforeInsert.sql b/db/routines/bs/triggers/nightTask_beforeInsert.sql index 6d0313425..96f2b5291 100644 --- a/db/routines/bs/triggers/nightTask_beforeInsert.sql +++ b/db/routines/bs/triggers/nightTask_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `bs`.`nightTask_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `bs`.`nightTask_beforeInsert` BEFORE INSERT ON `nightTask` FOR EACH ROW BEGIN diff --git a/db/routines/bs/triggers/nightTask_beforeUpdate.sql b/db/routines/bs/triggers/nightTask_beforeUpdate.sql index 70186202c..1da1da8c3 100644 --- a/db/routines/bs/triggers/nightTask_beforeUpdate.sql +++ b/db/routines/bs/triggers/nightTask_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `bs`.`nightTask_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `bs`.`nightTask_beforeUpdate` BEFORE UPDATE ON `nightTask` FOR EACH ROW BEGIN diff --git a/db/routines/bs/views/lastIndicators.sql b/db/routines/bs/views/lastIndicators.sql index 15de2d97f..3fa04abd3 100644 --- a/db/routines/bs/views/lastIndicators.sql +++ b/db/routines/bs/views/lastIndicators.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bs`.`lastIndicators` AS SELECT `i`.`updated` AS `updated`, diff --git a/db/routines/bs/views/packingSpeed.sql b/db/routines/bs/views/packingSpeed.sql index 10b70c940..517706b15 100644 --- a/db/routines/bs/views/packingSpeed.sql +++ b/db/routines/bs/views/packingSpeed.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bs`.`packingSpeed` AS SELECT HOUR(`e`.`created`) AS `hora`, diff --git a/db/routines/bs/views/ventas.sql b/db/routines/bs/views/ventas.sql index 3ebaf67c5..1fab2e91b 100644 --- a/db/routines/bs/views/ventas.sql +++ b/db/routines/bs/views/ventas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `bs`.`ventas` AS SELECT `s`.`saleFk` AS `Id_Movimiento`, diff --git a/db/routines/cache/events/cacheCalc_clean.sql b/db/routines/cache/events/cacheCalc_clean.sql index e201dac3a..e13bae98b 100644 --- a/db/routines/cache/events/cacheCalc_clean.sql +++ b/db/routines/cache/events/cacheCalc_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `cache`.`cacheCalc_clean` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `cache`.`cacheCalc_clean` ON SCHEDULE EVERY 30 MINUTE STARTS '2022-01-28 09:29:18.000' ON COMPLETION NOT PRESERVE diff --git a/db/routines/cache/events/cache_clean.sql b/db/routines/cache/events/cache_clean.sql index 6b83f71a0..c5e247bd4 100644 --- a/db/routines/cache/events/cache_clean.sql +++ b/db/routines/cache/events/cache_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `cache`.`cache_clean` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `cache`.`cache_clean` ON SCHEDULE EVERY 5 MINUTE STARTS '2022-01-28 09:29:18.000' ON COMPLETION NOT PRESERVE diff --git a/db/routines/cache/procedures/addressFriendship_Update.sql b/db/routines/cache/procedures/addressFriendship_Update.sql index 5e59d957a..f7fab8b9b 100644 --- a/db/routines/cache/procedures/addressFriendship_Update.sql +++ b/db/routines/cache/procedures/addressFriendship_Update.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`addressFriendship_Update`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`addressFriendship_Update`() BEGIN REPLACE cache.addressFriendship diff --git a/db/routines/cache/procedures/availableNoRaids_refresh.sql b/db/routines/cache/procedures/availableNoRaids_refresh.sql index 7a6294283..37715d270 100644 --- a/db/routines/cache/procedures/availableNoRaids_refresh.sql +++ b/db/routines/cache/procedures/availableNoRaids_refresh.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`availableNoRaids_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDated` DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`availableNoRaids_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDated` DATE) proc: BEGIN DECLARE vStartDate DATE; DECLARE vEndDate DATETIME; diff --git a/db/routines/cache/procedures/available_clean.sql b/db/routines/cache/procedures/available_clean.sql index 5a6401dc2..bb1f7302c 100644 --- a/db/routines/cache/procedures/available_clean.sql +++ b/db/routines/cache/procedures/available_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`available_clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`available_clean`() BEGIN DROP TEMPORARY TABLE IF EXISTS tCalc; CREATE TEMPORARY TABLE tCalc diff --git a/db/routines/cache/procedures/available_refresh.sql b/db/routines/cache/procedures/available_refresh.sql index 11f02404e..abf023a41 100644 --- a/db/routines/cache/procedures/available_refresh.sql +++ b/db/routines/cache/procedures/available_refresh.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`available_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDated` DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`available_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDated` DATE) proc: BEGIN DECLARE vStartDate DATE; DECLARE vReserveDate DATETIME; diff --git a/db/routines/cache/procedures/cacheCalc_clean.sql b/db/routines/cache/procedures/cacheCalc_clean.sql index ddaf64910..5c588687e 100644 --- a/db/routines/cache/procedures/cacheCalc_clean.sql +++ b/db/routines/cache/procedures/cacheCalc_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`cacheCalc_clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`cacheCalc_clean`() BEGIN DECLARE vCleanTime DATETIME DEFAULT TIMESTAMPADD(MINUTE, -5, NOW()); DELETE FROM cache_calc WHERE expires < vCleanTime; diff --git a/db/routines/cache/procedures/cache_calc_end.sql b/db/routines/cache/procedures/cache_calc_end.sql index eb4ea3207..b74a1b7fd 100644 --- a/db/routines/cache/procedures/cache_calc_end.sql +++ b/db/routines/cache/procedures/cache_calc_end.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`cache_calc_end`(IN `v_calc` INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`cache_calc_end`(IN `v_calc` INT) BEGIN DECLARE v_cache_name VARCHAR(255); DECLARE v_params VARCHAR(255); diff --git a/db/routines/cache/procedures/cache_calc_start.sql b/db/routines/cache/procedures/cache_calc_start.sql index 74526b36b..933d926ef 100644 --- a/db/routines/cache/procedures/cache_calc_start.sql +++ b/db/routines/cache/procedures/cache_calc_start.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`cache_calc_start`(OUT `v_calc` INT, INOUT `v_refresh` INT, IN `v_cache_name` VARCHAR(50), IN `v_params` VARCHAR(100)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`cache_calc_start`(OUT `v_calc` INT, INOUT `v_refresh` INT, IN `v_cache_name` VARCHAR(50), IN `v_params` VARCHAR(100)) proc: BEGIN DECLARE v_valid BOOL; DECLARE v_lock_id VARCHAR(100); diff --git a/db/routines/cache/procedures/cache_calc_unlock.sql b/db/routines/cache/procedures/cache_calc_unlock.sql index 35733b772..5dc46d925 100644 --- a/db/routines/cache/procedures/cache_calc_unlock.sql +++ b/db/routines/cache/procedures/cache_calc_unlock.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`cache_calc_unlock`(IN `v_calc` INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`cache_calc_unlock`(IN `v_calc` INT) proc: BEGIN DECLARE v_cache_name VARCHAR(50); DECLARE v_params VARCHAR(100); diff --git a/db/routines/cache/procedures/cache_clean.sql b/db/routines/cache/procedures/cache_clean.sql index afeea9370..0fca75e63 100644 --- a/db/routines/cache/procedures/cache_clean.sql +++ b/db/routines/cache/procedures/cache_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`cache_clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`cache_clean`() NO SQL BEGIN CALL available_clean; diff --git a/db/routines/cache/procedures/clean.sql b/db/routines/cache/procedures/clean.sql index 3aeafe79a..5e6628689 100644 --- a/db/routines/cache/procedures/clean.sql +++ b/db/routines/cache/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`clean`() BEGIN DELETE FROM cache.departure_limit WHERE Fecha < util.VN_CURDATE() - INTERVAL 1 MONTH; END$$ diff --git a/db/routines/cache/procedures/departure_timing.sql b/db/routines/cache/procedures/departure_timing.sql index d683a75d9..778c2cd74 100644 --- a/db/routines/cache/procedures/departure_timing.sql +++ b/db/routines/cache/procedures/departure_timing.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`departure_timing`(vWarehouseId INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`departure_timing`(vWarehouseId INT) BEGIN DECLARE done BOOL DEFAULT FALSE; diff --git a/db/routines/cache/procedures/last_buy_refresh.sql b/db/routines/cache/procedures/last_buy_refresh.sql index a8f7eae8d..555ae0b8d 100644 --- a/db/routines/cache/procedures/last_buy_refresh.sql +++ b/db/routines/cache/procedures/last_buy_refresh.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`last_buy_refresh`(vRefresh BOOL) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`last_buy_refresh`(vRefresh BOOL) proc: BEGIN /** * Crea o actualiza la cache con la última compra y fecha de cada diff --git a/db/routines/cache/procedures/stock_refresh.sql b/db/routines/cache/procedures/stock_refresh.sql index e68688586..5ddc6c20e 100644 --- a/db/routines/cache/procedures/stock_refresh.sql +++ b/db/routines/cache/procedures/stock_refresh.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`stock_refresh`(v_refresh BOOL) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`stock_refresh`(v_refresh BOOL) proc: BEGIN /** * Crea o actualiza la cache con el disponible hasta el dí­a de diff --git a/db/routines/cache/procedures/visible_clean.sql b/db/routines/cache/procedures/visible_clean.sql index 5bc0c0fc1..b6f03c563 100644 --- a/db/routines/cache/procedures/visible_clean.sql +++ b/db/routines/cache/procedures/visible_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`visible_clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`visible_clean`() BEGIN DROP TEMPORARY TABLE IF EXISTS tCalc; CREATE TEMPORARY TABLE tCalc diff --git a/db/routines/cache/procedures/visible_refresh.sql b/db/routines/cache/procedures/visible_refresh.sql index fa88de1e2..a673969d2 100644 --- a/db/routines/cache/procedures/visible_refresh.sql +++ b/db/routines/cache/procedures/visible_refresh.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `cache`.`visible_refresh`(OUT v_calc INT, v_refresh BOOL, v_warehouse INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `cache`.`visible_refresh`(OUT v_calc INT, v_refresh BOOL, v_warehouse INT) proc:BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN diff --git a/db/routines/dipole/procedures/clean.sql b/db/routines/dipole/procedures/clean.sql index 9054124b3..a9af64e15 100644 --- a/db/routines/dipole/procedures/clean.sql +++ b/db/routines/dipole/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `dipole`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `dipole`.`clean`() BEGIN DECLARE vFromDated DATE; diff --git a/db/routines/dipole/procedures/expedition_add.sql b/db/routines/dipole/procedures/expedition_add.sql index 6d6fb2fd8..70bc7930e 100644 --- a/db/routines/dipole/procedures/expedition_add.sql +++ b/db/routines/dipole/procedures/expedition_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `dipole`.`expedition_add`(vExpeditionFk INT, vPrinterFk INT, vIsPrinted BOOLEAN) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `dipole`.`expedition_add`(vExpeditionFk INT, vPrinterFk INT, vIsPrinted BOOLEAN) BEGIN /** Insert records to print agency stickers and to inform sorter with new box * diff --git a/db/routines/dipole/views/expeditionControl.sql b/db/routines/dipole/views/expeditionControl.sql index 9a2c0a731..e26e83440 100644 --- a/db/routines/dipole/views/expeditionControl.sql +++ b/db/routines/dipole/views/expeditionControl.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `dipole`.`expeditionControl` AS SELECT cast(`epo`.`created` AS date) AS `fecha`, diff --git a/db/routines/edi/events/floramondo.sql b/db/routines/edi/events/floramondo.sql index d2639ac35..0a38f3537 100644 --- a/db/routines/edi/events/floramondo.sql +++ b/db/routines/edi/events/floramondo.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `edi`.`floramondo` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `edi`.`floramondo` ON SCHEDULE EVERY 6 MINUTE STARTS '2022-01-28 09:52:45.000' ON COMPLETION NOT PRESERVE diff --git a/db/routines/edi/functions/imageName.sql b/db/routines/edi/functions/imageName.sql index a5cf33ff8..f2e52558f 100644 --- a/db/routines/edi/functions/imageName.sql +++ b/db/routines/edi/functions/imageName.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `edi`.`imageName`(vPictureReference VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `edi`.`imageName`(vPictureReference VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci DETERMINISTIC BEGIN diff --git a/db/routines/edi/procedures/clean.sql b/db/routines/edi/procedures/clean.sql index ce35b3e1d..71dd576e9 100644 --- a/db/routines/edi/procedures/clean.sql +++ b/db/routines/edi/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`clean`() BEGIN DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN diff --git a/db/routines/edi/procedures/deliveryInformation_Delete.sql b/db/routines/edi/procedures/deliveryInformation_Delete.sql index ac5b67e6f..b4f51515a 100644 --- a/db/routines/edi/procedures/deliveryInformation_Delete.sql +++ b/db/routines/edi/procedures/deliveryInformation_Delete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`deliveryInformation_Delete`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`deliveryInformation_Delete`() BEGIN DECLARE vID INT; diff --git a/db/routines/edi/procedures/ekt_add.sql b/db/routines/edi/procedures/ekt_add.sql index 377c9b411..1cc67bb93 100644 --- a/db/routines/edi/procedures/ekt_add.sql +++ b/db/routines/edi/procedures/ekt_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`ekt_add`(vPutOrderFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`ekt_add`(vPutOrderFk INT) BEGIN /** diff --git a/db/routines/edi/procedures/ekt_load.sql b/db/routines/edi/procedures/ekt_load.sql index 76f530183..190b09a86 100644 --- a/db/routines/edi/procedures/ekt_load.sql +++ b/db/routines/edi/procedures/ekt_load.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`ekt_load`(IN `vSelf` INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`ekt_load`(IN `vSelf` INT) proc:BEGIN /** * Carga los datos esenciales para el sistema EKT. diff --git a/db/routines/edi/procedures/ekt_loadNotBuy.sql b/db/routines/edi/procedures/ekt_loadNotBuy.sql index 867c99ab7..52697adc0 100644 --- a/db/routines/edi/procedures/ekt_loadNotBuy.sql +++ b/db/routines/edi/procedures/ekt_loadNotBuy.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`ekt_loadNotBuy`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`ekt_loadNotBuy`() BEGIN /** * Ejecuta ekt_load para aquellos ekt de hoy que no tienen vn.buy diff --git a/db/routines/edi/procedures/ekt_refresh.sql b/db/routines/edi/procedures/ekt_refresh.sql index 2df736b0e..8ba438c0a 100644 --- a/db/routines/edi/procedures/ekt_refresh.sql +++ b/db/routines/edi/procedures/ekt_refresh.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`ekt_refresh`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`ekt_refresh`( `vSelf` INT, vMailFk INT) BEGIN /** diff --git a/db/routines/edi/procedures/ekt_scan.sql b/db/routines/edi/procedures/ekt_scan.sql index c42e57ca4..0cf8bb466 100644 --- a/db/routines/edi/procedures/ekt_scan.sql +++ b/db/routines/edi/procedures/ekt_scan.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`ekt_scan`(vBarcode VARCHAR(512)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`ekt_scan`(vBarcode VARCHAR(512)) BEGIN /** * Busca transaciones a partir de un codigo de barras, las marca como escaneadas diff --git a/db/routines/edi/procedures/floramondo_offerRefresh.sql b/db/routines/edi/procedures/floramondo_offerRefresh.sql index b091ab133..18d3f8b7e 100644 --- a/db/routines/edi/procedures/floramondo_offerRefresh.sql +++ b/db/routines/edi/procedures/floramondo_offerRefresh.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`floramondo_offerRefresh`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`floramondo_offerRefresh`() proc: BEGIN DECLARE vLanded DATETIME; DECLARE vDone INT DEFAULT FALSE; diff --git a/db/routines/edi/procedures/item_freeAdd.sql b/db/routines/edi/procedures/item_freeAdd.sql index 93842af6e..cb572e1b1 100644 --- a/db/routines/edi/procedures/item_freeAdd.sql +++ b/db/routines/edi/procedures/item_freeAdd.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`item_freeAdd`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`item_freeAdd`() BEGIN /** * Rellena la tabla item_free con los id ausentes en vn.item diff --git a/db/routines/edi/procedures/item_getNewByEkt.sql b/db/routines/edi/procedures/item_getNewByEkt.sql index e169a0f00..a80d04817 100644 --- a/db/routines/edi/procedures/item_getNewByEkt.sql +++ b/db/routines/edi/procedures/item_getNewByEkt.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`item_getNewByEkt`(vEktFk INT, OUT vItemFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`item_getNewByEkt`(vEktFk INT, OUT vItemFk INT) BEGIN /** diff --git a/db/routines/edi/procedures/mail_new.sql b/db/routines/edi/procedures/mail_new.sql index 4ed3d0c37..7bbf3f5cf 100644 --- a/db/routines/edi/procedures/mail_new.sql +++ b/db/routines/edi/procedures/mail_new.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `edi`.`mail_new`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `edi`.`mail_new`( vMessageId VARCHAR(100) ,vSender VARCHAR(150) ,OUT vSelf INT diff --git a/db/routines/edi/triggers/item_feature_beforeInsert.sql b/db/routines/edi/triggers/item_feature_beforeInsert.sql index f2aabb91f..4e3e9cc0e 100644 --- a/db/routines/edi/triggers/item_feature_beforeInsert.sql +++ b/db/routines/edi/triggers/item_feature_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `edi`.`item_feature_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `edi`.`item_feature_beforeInsert` BEFORE INSERT ON `item_feature` FOR EACH ROW BEGIN diff --git a/db/routines/edi/triggers/putOrder_afterUpdate.sql b/db/routines/edi/triggers/putOrder_afterUpdate.sql index 00bb228c5..b56ae4c66 100644 --- a/db/routines/edi/triggers/putOrder_afterUpdate.sql +++ b/db/routines/edi/triggers/putOrder_afterUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `edi`.`putOrder_afterUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `edi`.`putOrder_afterUpdate` AFTER UPDATE ON `putOrder` FOR EACH ROW BEGIN diff --git a/db/routines/edi/triggers/putOrder_beforeInsert.sql b/db/routines/edi/triggers/putOrder_beforeInsert.sql index 13274c33c..beddd191c 100644 --- a/db/routines/edi/triggers/putOrder_beforeInsert.sql +++ b/db/routines/edi/triggers/putOrder_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `edi`.`putOrder_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `edi`.`putOrder_beforeInsert` BEFORE INSERT ON `putOrder` FOR EACH ROW BEGIN diff --git a/db/routines/edi/triggers/putOrder_beforeUpdate.sql b/db/routines/edi/triggers/putOrder_beforeUpdate.sql index c532f75d1..f18b77a0c 100644 --- a/db/routines/edi/triggers/putOrder_beforeUpdate.sql +++ b/db/routines/edi/triggers/putOrder_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `edi`.`putOrder_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `edi`.`putOrder_beforeUpdate` BEFORE UPDATE ON `putOrder` FOR EACH ROW BEGIN diff --git a/db/routines/edi/triggers/supplyResponse_afterUpdate.sql b/db/routines/edi/triggers/supplyResponse_afterUpdate.sql index 83c4beb4a..389ef9f1c 100644 --- a/db/routines/edi/triggers/supplyResponse_afterUpdate.sql +++ b/db/routines/edi/triggers/supplyResponse_afterUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `edi`.`supplyResponse_afterUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `edi`.`supplyResponse_afterUpdate` AFTER UPDATE ON `supplyResponse` FOR EACH ROW BEGIN diff --git a/db/routines/edi/views/ektK2.sql b/db/routines/edi/views/ektK2.sql index 5c06221b1..299d26b01 100644 --- a/db/routines/edi/views/ektK2.sql +++ b/db/routines/edi/views/ektK2.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `edi`.`ektK2` AS SELECT `eek`.`id` AS `id`, diff --git a/db/routines/edi/views/ektRecent.sql b/db/routines/edi/views/ektRecent.sql index 83f839bd9..66ff7875e 100644 --- a/db/routines/edi/views/ektRecent.sql +++ b/db/routines/edi/views/ektRecent.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `edi`.`ektRecent` AS SELECT `e`.`id` AS `id`, diff --git a/db/routines/edi/views/errorList.sql b/db/routines/edi/views/errorList.sql index 0273f8110..4e7cbc840 100644 --- a/db/routines/edi/views/errorList.sql +++ b/db/routines/edi/views/errorList.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `edi`.`errorList` AS SELECT `po`.`id` AS `id`, diff --git a/db/routines/edi/views/supplyOffer.sql b/db/routines/edi/views/supplyOffer.sql index e4e84df74..c4a8582a1 100644 --- a/db/routines/edi/views/supplyOffer.sql +++ b/db/routines/edi/views/supplyOffer.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `edi`.`supplyOffer` AS SELECT `sr`.`vmpID` AS `vmpID`, diff --git a/db/routines/floranet/procedures/catalogue_findById.sql b/db/routines/floranet/procedures/catalogue_findById.sql index ab97d1ada..aca6ca4d6 100644 --- a/db/routines/floranet/procedures/catalogue_findById.sql +++ b/db/routines/floranet/procedures/catalogue_findById.sql @@ -1,6 +1,6 @@ DELIMITER $$ $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE floranet.catalogue_findById(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE floranet.catalogue_findById(vSelf INT) READS SQL DATA BEGIN /** diff --git a/db/routines/floranet/procedures/catalogue_get.sql b/db/routines/floranet/procedures/catalogue_get.sql index d4dd0c69f..1e224c810 100644 --- a/db/routines/floranet/procedures/catalogue_get.sql +++ b/db/routines/floranet/procedures/catalogue_get.sql @@ -1,6 +1,6 @@ DELIMITER $$ $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE floranet.catalogue_get(vLanded DATE, vPostalCode VARCHAR(15)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE floranet.catalogue_get(vLanded DATE, vPostalCode VARCHAR(15)) READS SQL DATA proc:BEGIN /** diff --git a/db/routines/floranet/procedures/contact_request.sql b/db/routines/floranet/procedures/contact_request.sql index 6d05edaf7..2132a86fc 100644 --- a/db/routines/floranet/procedures/contact_request.sql +++ b/db/routines/floranet/procedures/contact_request.sql @@ -2,7 +2,7 @@ DROP PROCEDURE IF EXISTS floranet.contact_request; DELIMITER $$ $$ -CREATE DEFINER=`vn`@`localhost` +CREATE DEFINER=`root`@`localhost` PROCEDURE floranet.contact_request( vName VARCHAR(100), vPhone VARCHAR(15), diff --git a/db/routines/floranet/procedures/deliveryDate_get.sql b/db/routines/floranet/procedures/deliveryDate_get.sql index 84620dfed..70cb48818 100644 --- a/db/routines/floranet/procedures/deliveryDate_get.sql +++ b/db/routines/floranet/procedures/deliveryDate_get.sql @@ -1,6 +1,6 @@ DELIMITER $$ $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `floranet`.`deliveryDate_get`(vPostalCode VARCHAR(15)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `floranet`.`deliveryDate_get`(vPostalCode VARCHAR(15)) READS SQL DATA BEGIN /** diff --git a/db/routines/floranet/procedures/order_confirm.sql b/db/routines/floranet/procedures/order_confirm.sql index 2e59ed737..98e15bbab 100644 --- a/db/routines/floranet/procedures/order_confirm.sql +++ b/db/routines/floranet/procedures/order_confirm.sql @@ -1,7 +1,7 @@ DELIMITER $$ $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost`PROCEDURE floranet.order_confirm(vCatalogueFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost`PROCEDURE floranet.order_confirm(vCatalogueFk INT) READS SQL DATA proc:BEGIN diff --git a/db/routines/floranet/procedures/order_put.sql b/db/routines/floranet/procedures/order_put.sql index 7ab766a8d..c5eb71472 100644 --- a/db/routines/floranet/procedures/order_put.sql +++ b/db/routines/floranet/procedures/order_put.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE floranet.order_put(vJsonData JSON) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE floranet.order_put(vJsonData JSON) READS SQL DATA BEGIN /** diff --git a/db/routines/floranet/procedures/sliders_get.sql b/db/routines/floranet/procedures/sliders_get.sql index 096cfbde6..bafda4732 100644 --- a/db/routines/floranet/procedures/sliders_get.sql +++ b/db/routines/floranet/procedures/sliders_get.sql @@ -2,7 +2,7 @@ DROP PROCEDURE IF EXISTS floranet.sliders_get; DELIMITER $$ $$ -CREATE DEFINER=`vn`@`localhost` PROCEDURE floranet.sliders_get() +CREATE DEFINER=`root`@`localhost` PROCEDURE floranet.sliders_get() READS SQL DATA BEGIN /** diff --git a/db/routines/hedera/functions/myClient_getDebt.sql b/db/routines/hedera/functions/myClient_getDebt.sql index 7a3678c62..7f981904e 100644 --- a/db/routines/hedera/functions/myClient_getDebt.sql +++ b/db/routines/hedera/functions/myClient_getDebt.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `hedera`.`myClient_getDebt`(vDate DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `hedera`.`myClient_getDebt`(vDate DATE) RETURNS decimal(10,2) DETERMINISTIC BEGIN diff --git a/db/routines/hedera/functions/myUser_checkRestPriv.sql b/db/routines/hedera/functions/myUser_checkRestPriv.sql index c074a2073..874499ce9 100644 --- a/db/routines/hedera/functions/myUser_checkRestPriv.sql +++ b/db/routines/hedera/functions/myUser_checkRestPriv.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `hedera`.`myUser_checkRestPriv`(vMethodPath VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `hedera`.`myUser_checkRestPriv`(vMethodPath VARCHAR(255)) RETURNS tinyint(1) DETERMINISTIC BEGIN diff --git a/db/routines/hedera/functions/order_getTotal.sql b/db/routines/hedera/functions/order_getTotal.sql index 2a6c90182..2edb6340d 100644 --- a/db/routines/hedera/functions/order_getTotal.sql +++ b/db/routines/hedera/functions/order_getTotal.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `hedera`.`order_getTotal`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `hedera`.`order_getTotal`(vSelf INT) RETURNS decimal(10,2) DETERMINISTIC READS SQL DATA diff --git a/db/routines/hedera/procedures/catalog_calcFromMyAddress.sql b/db/routines/hedera/procedures/catalog_calcFromMyAddress.sql index d25346f34..c9fa54f36 100644 --- a/db/routines/hedera/procedures/catalog_calcFromMyAddress.sql +++ b/db/routines/hedera/procedures/catalog_calcFromMyAddress.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`catalog_calcFromMyAddress`(vDelivery DATE, vAddress INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`catalog_calcFromMyAddress`(vDelivery DATE, vAddress INT) BEGIN /** * Gets the available items list. diff --git a/db/routines/hedera/procedures/image_ref.sql b/db/routines/hedera/procedures/image_ref.sql index 8fb344c1c..4c6e925fe 100644 --- a/db/routines/hedera/procedures/image_ref.sql +++ b/db/routines/hedera/procedures/image_ref.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`image_ref`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`image_ref`( vCollection VARCHAR(255), vName VARCHAR(255) ) diff --git a/db/routines/hedera/procedures/image_unref.sql b/db/routines/hedera/procedures/image_unref.sql index 95dda1043..146fc486b 100644 --- a/db/routines/hedera/procedures/image_unref.sql +++ b/db/routines/hedera/procedures/image_unref.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`image_unref`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`image_unref`( vCollection VARCHAR(255), vName VARCHAR(255) ) diff --git a/db/routines/hedera/procedures/item_calcCatalog.sql b/db/routines/hedera/procedures/item_calcCatalog.sql index 0afe79d5a..fae89bd5c 100644 --- a/db/routines/hedera/procedures/item_calcCatalog.sql +++ b/db/routines/hedera/procedures/item_calcCatalog.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`item_calcCatalog`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`item_calcCatalog`( vSelf INT, vLanded DATE, vAddressFk INT, diff --git a/db/routines/hedera/procedures/item_getVisible.sql b/db/routines/hedera/procedures/item_getVisible.sql index 3ac6da98a..2f4ef32ab 100644 --- a/db/routines/hedera/procedures/item_getVisible.sql +++ b/db/routines/hedera/procedures/item_getVisible.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`item_getVisible`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`item_getVisible`( vWarehouse TINYINT, vDate DATE, vType INT, diff --git a/db/routines/hedera/procedures/item_listAllocation.sql b/db/routines/hedera/procedures/item_listAllocation.sql index c7fdf6aa7..4a9c723f5 100644 --- a/db/routines/hedera/procedures/item_listAllocation.sql +++ b/db/routines/hedera/procedures/item_listAllocation.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`item_listAllocation`(IN `vWh` TINYINT, IN `vDate` DATE, IN `vType` INT, IN `vPrefix` VARCHAR(255), IN `vUseIds` BOOLEAN) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`item_listAllocation`(IN `vWh` TINYINT, IN `vDate` DATE, IN `vType` INT, IN `vPrefix` VARCHAR(255), IN `vUseIds` BOOLEAN) BEGIN /** * Lists visible items and it's box sizes of the specified diff --git a/db/routines/hedera/procedures/myOrder_addItem.sql b/db/routines/hedera/procedures/myOrder_addItem.sql index 90804017c..b5ea34ea2 100644 --- a/db/routines/hedera/procedures/myOrder_addItem.sql +++ b/db/routines/hedera/procedures/myOrder_addItem.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_addItem`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_addItem`( vSelf INT, vWarehouse INT, vItem INT, diff --git a/db/routines/hedera/procedures/myOrder_calcCatalogFromItem.sql b/db/routines/hedera/procedures/myOrder_calcCatalogFromItem.sql index dd6e1b476..05c2a41f2 100644 --- a/db/routines/hedera/procedures/myOrder_calcCatalogFromItem.sql +++ b/db/routines/hedera/procedures/myOrder_calcCatalogFromItem.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_calcCatalogFromItem`(vSelf INT, vItem INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_calcCatalogFromItem`(vSelf INT, vItem INT) BEGIN /** * Gets the availability and prices for the given item diff --git a/db/routines/hedera/procedures/myOrder_calcCatalogFull.sql b/db/routines/hedera/procedures/myOrder_calcCatalogFull.sql index b593b6492..b83286a2b 100644 --- a/db/routines/hedera/procedures/myOrder_calcCatalogFull.sql +++ b/db/routines/hedera/procedures/myOrder_calcCatalogFull.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_calcCatalogFull`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_calcCatalogFull`(vSelf INT) BEGIN /** * Gets the availability and prices for the given items diff --git a/db/routines/hedera/procedures/myOrder_checkConfig.sql b/db/routines/hedera/procedures/myOrder_checkConfig.sql index ca33db032..ca810805c 100644 --- a/db/routines/hedera/procedures/myOrder_checkConfig.sql +++ b/db/routines/hedera/procedures/myOrder_checkConfig.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_checkConfig`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_checkConfig`(vSelf INT) proc: BEGIN /** * Comprueba que la cesta esta creada y que su configuración es diff --git a/db/routines/hedera/procedures/myOrder_checkMine.sql b/db/routines/hedera/procedures/myOrder_checkMine.sql index 7ac370cb6..7e00b2f7f 100644 --- a/db/routines/hedera/procedures/myOrder_checkMine.sql +++ b/db/routines/hedera/procedures/myOrder_checkMine.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_checkMine`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_checkMine`(vSelf INT) proc: BEGIN /** * Check that order is owned by current user, otherwise throws an error. diff --git a/db/routines/hedera/procedures/myOrder_configure.sql b/db/routines/hedera/procedures/myOrder_configure.sql index c16406ee7..185384fc0 100644 --- a/db/routines/hedera/procedures/myOrder_configure.sql +++ b/db/routines/hedera/procedures/myOrder_configure.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_configure`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_configure`( vSelf INT, vDelivery DATE, vDeliveryMethod VARCHAR(45), diff --git a/db/routines/hedera/procedures/myOrder_configureForGuest.sql b/db/routines/hedera/procedures/myOrder_configureForGuest.sql index aa4d0fde7..9d4ede5e0 100644 --- a/db/routines/hedera/procedures/myOrder_configureForGuest.sql +++ b/db/routines/hedera/procedures/myOrder_configureForGuest.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_configureForGuest`(OUT vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_configureForGuest`(OUT vSelf INT) BEGIN DECLARE vMethod VARCHAR(255); DECLARE vAgency INT; diff --git a/db/routines/hedera/procedures/myOrder_confirm.sql b/db/routines/hedera/procedures/myOrder_confirm.sql index 4966bbf9f..2117ea448 100644 --- a/db/routines/hedera/procedures/myOrder_confirm.sql +++ b/db/routines/hedera/procedures/myOrder_confirm.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_confirm`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_confirm`(vSelf INT) BEGIN CALL myOrder_checkMine(vSelf); CALL order_checkConfig(vSelf); diff --git a/db/routines/hedera/procedures/myOrder_create.sql b/db/routines/hedera/procedures/myOrder_create.sql index f945c5af5..251948bc6 100644 --- a/db/routines/hedera/procedures/myOrder_create.sql +++ b/db/routines/hedera/procedures/myOrder_create.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_create`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_create`( OUT vSelf INT, vDelivery DATE, vDeliveryMethod VARCHAR(45), diff --git a/db/routines/hedera/procedures/myOrder_getAvailable.sql b/db/routines/hedera/procedures/myOrder_getAvailable.sql index c94a339a6..00ac60563 100644 --- a/db/routines/hedera/procedures/myOrder_getAvailable.sql +++ b/db/routines/hedera/procedures/myOrder_getAvailable.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_getAvailable`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_getAvailable`(vSelf INT) BEGIN /** * Gets the available items list. diff --git a/db/routines/hedera/procedures/myOrder_getTax.sql b/db/routines/hedera/procedures/myOrder_getTax.sql index 68b2dd4c8..826a37efd 100644 --- a/db/routines/hedera/procedures/myOrder_getTax.sql +++ b/db/routines/hedera/procedures/myOrder_getTax.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_getTax`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_getTax`(vSelf INT) READS SQL DATA BEGIN /** diff --git a/db/routines/hedera/procedures/myOrder_newWithAddress.sql b/db/routines/hedera/procedures/myOrder_newWithAddress.sql index b4ec4aed4..ec3f07d9f 100644 --- a/db/routines/hedera/procedures/myOrder_newWithAddress.sql +++ b/db/routines/hedera/procedures/myOrder_newWithAddress.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_newWithAddress`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_newWithAddress`( OUT vSelf INT, vLandingDate DATE, vAddressFk INT) diff --git a/db/routines/hedera/procedures/myOrder_newWithDate.sql b/db/routines/hedera/procedures/myOrder_newWithDate.sql index a9c4c8f7f..4d1837e2b 100644 --- a/db/routines/hedera/procedures/myOrder_newWithDate.sql +++ b/db/routines/hedera/procedures/myOrder_newWithDate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myOrder_newWithDate`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myOrder_newWithDate`( OUT vSelf INT, vLandingDate DATE) BEGIN diff --git a/db/routines/hedera/procedures/myTicket_get.sql b/db/routines/hedera/procedures/myTicket_get.sql index 1c95aea36..7d203aca6 100644 --- a/db/routines/hedera/procedures/myTicket_get.sql +++ b/db/routines/hedera/procedures/myTicket_get.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTicket_get`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTicket_get`(vSelf INT) BEGIN /** * Returns a current user ticket header. diff --git a/db/routines/hedera/procedures/myTicket_getPackages.sql b/db/routines/hedera/procedures/myTicket_getPackages.sql index 8a03a6e35..8ed486dff 100644 --- a/db/routines/hedera/procedures/myTicket_getPackages.sql +++ b/db/routines/hedera/procedures/myTicket_getPackages.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTicket_getPackages`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTicket_getPackages`(vSelf INT) BEGIN /** * Returns a current user ticket packages. diff --git a/db/routines/hedera/procedures/myTicket_getRows.sql b/db/routines/hedera/procedures/myTicket_getRows.sql index 53547f2b2..0a99ce892 100644 --- a/db/routines/hedera/procedures/myTicket_getRows.sql +++ b/db/routines/hedera/procedures/myTicket_getRows.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTicket_getRows`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTicket_getRows`(vSelf INT) BEGIN SELECT r.itemFk, r.quantity, r.concept, r.price, r.discount, i.category, i.size, i.stems, i.inkFk, diff --git a/db/routines/hedera/procedures/myTicket_getServices.sql b/db/routines/hedera/procedures/myTicket_getServices.sql index 3d982d25a..56ca52c19 100644 --- a/db/routines/hedera/procedures/myTicket_getServices.sql +++ b/db/routines/hedera/procedures/myTicket_getServices.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTicket_getServices`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTicket_getServices`(vSelf INT) BEGIN /** * Returns a current user ticket services. diff --git a/db/routines/hedera/procedures/myTicket_list.sql b/db/routines/hedera/procedures/myTicket_list.sql index cfbc064e3..b063ce25c 100644 --- a/db/routines/hedera/procedures/myTicket_list.sql +++ b/db/routines/hedera/procedures/myTicket_list.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTicket_list`(vFrom DATE, vTo DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTicket_list`(vFrom DATE, vTo DATE) BEGIN /** * Returns the current user list of tickets between two dates reange. diff --git a/db/routines/hedera/procedures/myTicket_logAccess.sql b/db/routines/hedera/procedures/myTicket_logAccess.sql index aa0a1d380..1dcee8dd6 100644 --- a/db/routines/hedera/procedures/myTicket_logAccess.sql +++ b/db/routines/hedera/procedures/myTicket_logAccess.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTicket_logAccess`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTicket_logAccess`(vSelf INT) BEGIN /** * Logs an access to a ticket. diff --git a/db/routines/hedera/procedures/myTpvTransaction_end.sql b/db/routines/hedera/procedures/myTpvTransaction_end.sql index 197207833..3884f0e37 100644 --- a/db/routines/hedera/procedures/myTpvTransaction_end.sql +++ b/db/routines/hedera/procedures/myTpvTransaction_end.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTpvTransaction_end`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTpvTransaction_end`( vSelf INT, vStatus VARCHAR(12)) BEGIN diff --git a/db/routines/hedera/procedures/myTpvTransaction_start.sql b/db/routines/hedera/procedures/myTpvTransaction_start.sql index e3d5023b8..71bae97fa 100644 --- a/db/routines/hedera/procedures/myTpvTransaction_start.sql +++ b/db/routines/hedera/procedures/myTpvTransaction_start.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`myTpvTransaction_start`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`myTpvTransaction_start`( vAmount INT, vCompany INT) BEGIN diff --git a/db/routines/hedera/procedures/order_addItem.sql b/db/routines/hedera/procedures/order_addItem.sql index 74bad2ffc..f690f9aa6 100644 --- a/db/routines/hedera/procedures/order_addItem.sql +++ b/db/routines/hedera/procedures/order_addItem.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_addItem`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_addItem`( vSelf INT, vWarehouse INT, vItem INT, diff --git a/db/routines/hedera/procedures/order_calcCatalog.sql b/db/routines/hedera/procedures/order_calcCatalog.sql index efdb9d190..239e01788 100644 --- a/db/routines/hedera/procedures/order_calcCatalog.sql +++ b/db/routines/hedera/procedures/order_calcCatalog.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_calcCatalog`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_calcCatalog`(vSelf INT) BEGIN /** * Gets the availability and prices for order items. diff --git a/db/routines/hedera/procedures/order_calcCatalogFromItem.sql b/db/routines/hedera/procedures/order_calcCatalogFromItem.sql index ae57ad5ba..517e9dab9 100644 --- a/db/routines/hedera/procedures/order_calcCatalogFromItem.sql +++ b/db/routines/hedera/procedures/order_calcCatalogFromItem.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_calcCatalogFromItem`(vSelf INT, vItem INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_calcCatalogFromItem`(vSelf INT, vItem INT) BEGIN /** * Gets the availability and prices for the given item diff --git a/db/routines/hedera/procedures/order_calcCatalogFull.sql b/db/routines/hedera/procedures/order_calcCatalogFull.sql index fedb73903..41408c5e8 100644 --- a/db/routines/hedera/procedures/order_calcCatalogFull.sql +++ b/db/routines/hedera/procedures/order_calcCatalogFull.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_calcCatalogFull`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_calcCatalogFull`(vSelf INT) BEGIN /** * Gets the availability and prices for the given items diff --git a/db/routines/hedera/procedures/order_checkConfig.sql b/db/routines/hedera/procedures/order_checkConfig.sql index 88799b2de..9dbea1a76 100644 --- a/db/routines/hedera/procedures/order_checkConfig.sql +++ b/db/routines/hedera/procedures/order_checkConfig.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_checkConfig`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_checkConfig`(vSelf INT) BEGIN /** * Comprueba que la configuración del pedido es correcta. diff --git a/db/routines/hedera/procedures/order_checkEditable.sql b/db/routines/hedera/procedures/order_checkEditable.sql index 8ff7e5996..512e6e6f1 100644 --- a/db/routines/hedera/procedures/order_checkEditable.sql +++ b/db/routines/hedera/procedures/order_checkEditable.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_checkEditable`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_checkEditable`(vSelf INT) BEGIN /** * Cheks if order is editable. diff --git a/db/routines/hedera/procedures/order_configure.sql b/db/routines/hedera/procedures/order_configure.sql index 42b403444..b03acec08 100644 --- a/db/routines/hedera/procedures/order_configure.sql +++ b/db/routines/hedera/procedures/order_configure.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_configure`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_configure`( vSelf INT, vDelivery DATE, vDeliveryMethod VARCHAR(45), diff --git a/db/routines/hedera/procedures/order_confirm.sql b/db/routines/hedera/procedures/order_confirm.sql index bf70b4645..6fd53b4ea 100644 --- a/db/routines/hedera/procedures/order_confirm.sql +++ b/db/routines/hedera/procedures/order_confirm.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_confirm`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_confirm`(vSelf INT) BEGIN /** * Confirms an order, creating each of its tickets on diff --git a/db/routines/hedera/procedures/order_confirmWithUser.sql b/db/routines/hedera/procedures/order_confirmWithUser.sql index a08f415cd..2b033b704 100644 --- a/db/routines/hedera/procedures/order_confirmWithUser.sql +++ b/db/routines/hedera/procedures/order_confirmWithUser.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_confirmWithUser`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_confirmWithUser`( vSelf INT, vUserFk INT ) diff --git a/db/routines/hedera/procedures/order_getAvailable.sql b/db/routines/hedera/procedures/order_getAvailable.sql index 12a5297d6..2b7d60e33 100644 --- a/db/routines/hedera/procedures/order_getAvailable.sql +++ b/db/routines/hedera/procedures/order_getAvailable.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_getAvailable`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_getAvailable`(vSelf INT) BEGIN /** * Gets the available items list. diff --git a/db/routines/hedera/procedures/order_getTax.sql b/db/routines/hedera/procedures/order_getTax.sql index 1c0950000..d24ffe7ef 100644 --- a/db/routines/hedera/procedures/order_getTax.sql +++ b/db/routines/hedera/procedures/order_getTax.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_getTax`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_getTax`() READS SQL DATA BEGIN /** diff --git a/db/routines/hedera/procedures/order_getTotal.sql b/db/routines/hedera/procedures/order_getTotal.sql index a8c872aec..c0b8d40ae 100644 --- a/db/routines/hedera/procedures/order_getTotal.sql +++ b/db/routines/hedera/procedures/order_getTotal.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_getTotal`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_getTotal`() BEGIN /** * Calcula el total con IVA para un conjunto de orders. diff --git a/db/routines/hedera/procedures/order_recalc.sql b/db/routines/hedera/procedures/order_recalc.sql index a76c34f2c..1398b49f6 100644 --- a/db/routines/hedera/procedures/order_recalc.sql +++ b/db/routines/hedera/procedures/order_recalc.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_recalc`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_recalc`(vSelf INT) BEGIN /** * Recalculates the order total. diff --git a/db/routines/hedera/procedures/order_update.sql b/db/routines/hedera/procedures/order_update.sql index 0a7981072..207cad09f 100644 --- a/db/routines/hedera/procedures/order_update.sql +++ b/db/routines/hedera/procedures/order_update.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`order_update`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_update`(vSelf INT) proc: BEGIN /** * Actualiza las líneas de un pedido. diff --git a/db/routines/hedera/procedures/survey_vote.sql b/db/routines/hedera/procedures/survey_vote.sql index b54ce2736..46c31393a 100644 --- a/db/routines/hedera/procedures/survey_vote.sql +++ b/db/routines/hedera/procedures/survey_vote.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`survey_vote`(vAnswer INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`survey_vote`(vAnswer INT) BEGIN DECLARE vSurvey INT; DECLARE vCount TINYINT; diff --git a/db/routines/hedera/procedures/tpvTransaction_confirm.sql b/db/routines/hedera/procedures/tpvTransaction_confirm.sql index e14340b6b..60a6d8452 100644 --- a/db/routines/hedera/procedures/tpvTransaction_confirm.sql +++ b/db/routines/hedera/procedures/tpvTransaction_confirm.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirm`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirm`( vAmount INT ,vOrder INT ,vMerchant INT diff --git a/db/routines/hedera/procedures/tpvTransaction_confirmAll.sql b/db/routines/hedera/procedures/tpvTransaction_confirmAll.sql index d6cfafd6c..b6a71af01 100644 --- a/db/routines/hedera/procedures/tpvTransaction_confirmAll.sql +++ b/db/routines/hedera/procedures/tpvTransaction_confirmAll.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirmAll`(vDate DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirmAll`(vDate DATE) BEGIN /** * Confirma todas las transacciones confirmadas por el cliente pero no diff --git a/db/routines/hedera/procedures/tpvTransaction_confirmById.sql b/db/routines/hedera/procedures/tpvTransaction_confirmById.sql index a6a476e5b..7cbdb65c6 100644 --- a/db/routines/hedera/procedures/tpvTransaction_confirmById.sql +++ b/db/routines/hedera/procedures/tpvTransaction_confirmById.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirmById`(vOrder INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirmById`(vOrder INT) BEGIN /** * Confirma manualmente una transacción espedificando su identificador. diff --git a/db/routines/hedera/procedures/tpvTransaction_confirmFromExport.sql b/db/routines/hedera/procedures/tpvTransaction_confirmFromExport.sql index 8082f9abc..7ca0e44e2 100644 --- a/db/routines/hedera/procedures/tpvTransaction_confirmFromExport.sql +++ b/db/routines/hedera/procedures/tpvTransaction_confirmFromExport.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirmFromExport`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`tpvTransaction_confirmFromExport`() BEGIN /** * Confirms multiple transactions comming from Redsys "canales" exported CSV. diff --git a/db/routines/hedera/procedures/tpvTransaction_end.sql b/db/routines/hedera/procedures/tpvTransaction_end.sql index 1c03ffe74..ec0a0224d 100644 --- a/db/routines/hedera/procedures/tpvTransaction_end.sql +++ b/db/routines/hedera/procedures/tpvTransaction_end.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`tpvTransaction_end`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`tpvTransaction_end`( vSelf INT, vStatus VARCHAR(12)) BEGIN diff --git a/db/routines/hedera/procedures/tpvTransaction_start.sql b/db/routines/hedera/procedures/tpvTransaction_start.sql index 7ed63c124..55fd922da 100644 --- a/db/routines/hedera/procedures/tpvTransaction_start.sql +++ b/db/routines/hedera/procedures/tpvTransaction_start.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`tpvTransaction_start`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`tpvTransaction_start`( vAmount INT, vCompany INT, vUser INT) diff --git a/db/routines/hedera/procedures/tpvTransaction_undo.sql b/db/routines/hedera/procedures/tpvTransaction_undo.sql index 8eabba3c1..f31ba6a80 100644 --- a/db/routines/hedera/procedures/tpvTransaction_undo.sql +++ b/db/routines/hedera/procedures/tpvTransaction_undo.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`tpvTransaction_undo`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`tpvTransaction_undo`(vSelf INT) p: BEGIN DECLARE vCustomer INT; DECLARE vAmount DOUBLE; diff --git a/db/routines/hedera/procedures/visitUser_new.sql b/db/routines/hedera/procedures/visitUser_new.sql index 1a4e3a08c..3c299f209 100644 --- a/db/routines/hedera/procedures/visitUser_new.sql +++ b/db/routines/hedera/procedures/visitUser_new.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`visitUser_new`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`visitUser_new`( vAccess INT ,vSsid VARCHAR(64) ) diff --git a/db/routines/hedera/procedures/visit_listByBrowser.sql b/db/routines/hedera/procedures/visit_listByBrowser.sql index dcf3fdad9..2fa45b8f2 100644 --- a/db/routines/hedera/procedures/visit_listByBrowser.sql +++ b/db/routines/hedera/procedures/visit_listByBrowser.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`visit_listByBrowser`(vFrom DATE, vTo DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`visit_listByBrowser`(vFrom DATE, vTo DATE) BEGIN /** * Lists visits grouped by browser. diff --git a/db/routines/hedera/procedures/visit_register.sql b/db/routines/hedera/procedures/visit_register.sql index 345527b25..80b6f16a9 100644 --- a/db/routines/hedera/procedures/visit_register.sql +++ b/db/routines/hedera/procedures/visit_register.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `hedera`.`visit_register`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`visit_register`( vVisit INT ,vPlatform VARCHAR(30) ,vBrowser VARCHAR(30) diff --git a/db/routines/hedera/triggers/link_afterDelete.sql b/db/routines/hedera/triggers/link_afterDelete.sql index e9efa7f91..571540cba 100644 --- a/db/routines/hedera/triggers/link_afterDelete.sql +++ b/db/routines/hedera/triggers/link_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`link_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`link_afterDelete` AFTER DELETE ON `link` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/link_afterInsert.sql b/db/routines/hedera/triggers/link_afterInsert.sql index af6989e44..e3f163a9e 100644 --- a/db/routines/hedera/triggers/link_afterInsert.sql +++ b/db/routines/hedera/triggers/link_afterInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`link_afterInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`link_afterInsert` AFTER INSERT ON `link` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/link_afterUpdate.sql b/db/routines/hedera/triggers/link_afterUpdate.sql index c10f20b25..7ffe2a335 100644 --- a/db/routines/hedera/triggers/link_afterUpdate.sql +++ b/db/routines/hedera/triggers/link_afterUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`link_afterUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`link_afterUpdate` AFTER UPDATE ON `link` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/news_afterDelete.sql b/db/routines/hedera/triggers/news_afterDelete.sql index 73a85ba7b..07a0403e0 100644 --- a/db/routines/hedera/triggers/news_afterDelete.sql +++ b/db/routines/hedera/triggers/news_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`news_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`news_afterDelete` AFTER DELETE ON `news` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/news_afterInsert.sql b/db/routines/hedera/triggers/news_afterInsert.sql index 7d5c4ded7..61e6078ef 100644 --- a/db/routines/hedera/triggers/news_afterInsert.sql +++ b/db/routines/hedera/triggers/news_afterInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`news_afterInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`news_afterInsert` AFTER INSERT ON `news` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/news_afterUpdate.sql b/db/routines/hedera/triggers/news_afterUpdate.sql index e0a74f1ca..15ea32f1d 100644 --- a/db/routines/hedera/triggers/news_afterUpdate.sql +++ b/db/routines/hedera/triggers/news_afterUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`news_afterUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`news_afterUpdate` AFTER UPDATE ON `news` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/orderRow_beforeInsert.sql b/db/routines/hedera/triggers/orderRow_beforeInsert.sql index b35123f4a..0c9f31bab 100644 --- a/db/routines/hedera/triggers/orderRow_beforeInsert.sql +++ b/db/routines/hedera/triggers/orderRow_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`orderRow_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`orderRow_beforeInsert` BEFORE INSERT ON `orderRow` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/order_afterInsert.sql b/db/routines/hedera/triggers/order_afterInsert.sql index 7070ede02..2fe83ee8f 100644 --- a/db/routines/hedera/triggers/order_afterInsert.sql +++ b/db/routines/hedera/triggers/order_afterInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`order_afterInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`order_afterInsert` AFTER INSERT ON `order` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/order_afterUpdate.sql b/db/routines/hedera/triggers/order_afterUpdate.sql index 3b1cd9df1..25f51b3f0 100644 --- a/db/routines/hedera/triggers/order_afterUpdate.sql +++ b/db/routines/hedera/triggers/order_afterUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`order_afterUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`order_afterUpdate` AFTER UPDATE ON `order` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/triggers/order_beforeDelete.sql b/db/routines/hedera/triggers/order_beforeDelete.sql index da6259248..eb602be89 100644 --- a/db/routines/hedera/triggers/order_beforeDelete.sql +++ b/db/routines/hedera/triggers/order_beforeDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `hedera`.`order_beforeDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`order_beforeDelete` BEFORE DELETE ON `order` FOR EACH ROW BEGIN diff --git a/db/routines/hedera/views/mainAccountBank.sql b/db/routines/hedera/views/mainAccountBank.sql index 9fc3b3c3a..3130a1614 100644 --- a/db/routines/hedera/views/mainAccountBank.sql +++ b/db/routines/hedera/views/mainAccountBank.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`mainAccountBank` AS SELECT `e`.`name` AS `name`, diff --git a/db/routines/hedera/views/messageL10n.sql b/db/routines/hedera/views/messageL10n.sql index 80f6638ad..6488de6a9 100644 --- a/db/routines/hedera/views/messageL10n.sql +++ b/db/routines/hedera/views/messageL10n.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`messageL10n` AS SELECT `m`.`code` AS `code`, diff --git a/db/routines/hedera/views/myAddress.sql b/db/routines/hedera/views/myAddress.sql index 80809c5ea..ee8d87759 100644 --- a/db/routines/hedera/views/myAddress.sql +++ b/db/routines/hedera/views/myAddress.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myAddress` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/hedera/views/myBasketDefaults.sql b/db/routines/hedera/views/myBasketDefaults.sql index 43df18687..475212da1 100644 --- a/db/routines/hedera/views/myBasketDefaults.sql +++ b/db/routines/hedera/views/myBasketDefaults.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myBasketDefaults` AS SELECT coalesce(`dm`.`code`, `cm`.`code`) AS `deliveryMethod`, diff --git a/db/routines/hedera/views/myClient.sql b/db/routines/hedera/views/myClient.sql index 032cc5f5f..ef7159549 100644 --- a/db/routines/hedera/views/myClient.sql +++ b/db/routines/hedera/views/myClient.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myClient` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/hedera/views/myInvoice.sql b/db/routines/hedera/views/myInvoice.sql index 40527ac0c..dd1a917ad 100644 --- a/db/routines/hedera/views/myInvoice.sql +++ b/db/routines/hedera/views/myInvoice.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myInvoice` AS SELECT `i`.`id` AS `id`, diff --git a/db/routines/hedera/views/myMenu.sql b/db/routines/hedera/views/myMenu.sql index 60f464e7a..94e58835d 100644 --- a/db/routines/hedera/views/myMenu.sql +++ b/db/routines/hedera/views/myMenu.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myMenu` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/hedera/views/myOrder.sql b/db/routines/hedera/views/myOrder.sql index ca9283298..78becd884 100644 --- a/db/routines/hedera/views/myOrder.sql +++ b/db/routines/hedera/views/myOrder.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myOrder` AS SELECT `o`.`id` AS `id`, diff --git a/db/routines/hedera/views/myOrderRow.sql b/db/routines/hedera/views/myOrderRow.sql index ddf91a24f..af42b0745 100644 --- a/db/routines/hedera/views/myOrderRow.sql +++ b/db/routines/hedera/views/myOrderRow.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myOrderRow` AS SELECT `orw`.`id` AS `id`, diff --git a/db/routines/hedera/views/myOrderTicket.sql b/db/routines/hedera/views/myOrderTicket.sql index 5fa541855..fa8220b55 100644 --- a/db/routines/hedera/views/myOrderTicket.sql +++ b/db/routines/hedera/views/myOrderTicket.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myOrderTicket` AS SELECT `o`.`id` AS `orderFk`, diff --git a/db/routines/hedera/views/myTicket.sql b/db/routines/hedera/views/myTicket.sql index 4edb742c8..f17cda9a4 100644 --- a/db/routines/hedera/views/myTicket.sql +++ b/db/routines/hedera/views/myTicket.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myTicket` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/hedera/views/myTicketRow.sql b/db/routines/hedera/views/myTicketRow.sql index 69b11625f..5afff812b 100644 --- a/db/routines/hedera/views/myTicketRow.sql +++ b/db/routines/hedera/views/myTicketRow.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myTicketRow` AS SELECT `s`.`id` AS `id`, diff --git a/db/routines/hedera/views/myTicketService.sql b/db/routines/hedera/views/myTicketService.sql index 7cb23a862..feb839873 100644 --- a/db/routines/hedera/views/myTicketService.sql +++ b/db/routines/hedera/views/myTicketService.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myTicketService` AS SELECT `s`.`id` AS `id`, diff --git a/db/routines/hedera/views/myTicketState.sql b/db/routines/hedera/views/myTicketState.sql index 8d3d276b8..530441e3b 100644 --- a/db/routines/hedera/views/myTicketState.sql +++ b/db/routines/hedera/views/myTicketState.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myTicketState` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/hedera/views/myTpvTransaction.sql b/db/routines/hedera/views/myTpvTransaction.sql index a860ed29d..98694065f 100644 --- a/db/routines/hedera/views/myTpvTransaction.sql +++ b/db/routines/hedera/views/myTpvTransaction.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`myTpvTransaction` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/hedera/views/orderTicket.sql b/db/routines/hedera/views/orderTicket.sql index b0c55bc7d..c35077935 100644 --- a/db/routines/hedera/views/orderTicket.sql +++ b/db/routines/hedera/views/orderTicket.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`orderTicket` AS SELECT `b`.`orderFk` AS `orderFk`, diff --git a/db/routines/hedera/views/order_component.sql b/db/routines/hedera/views/order_component.sql index e83114724..b3eb7522b 100644 --- a/db/routines/hedera/views/order_component.sql +++ b/db/routines/hedera/views/order_component.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`order_component` AS SELECT `t`.`rowFk` AS `order_row_id`, diff --git a/db/routines/hedera/views/order_row.sql b/db/routines/hedera/views/order_row.sql index ab25774f6..f69fd98a3 100644 --- a/db/routines/hedera/views/order_row.sql +++ b/db/routines/hedera/views/order_row.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `hedera`.`order_row` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/pbx/functions/clientFromPhone.sql b/db/routines/pbx/functions/clientFromPhone.sql index b8186e0e0..dc18810aa 100644 --- a/db/routines/pbx/functions/clientFromPhone.sql +++ b/db/routines/pbx/functions/clientFromPhone.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `pbx`.`clientFromPhone`(vPhone VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `pbx`.`clientFromPhone`(vPhone VARCHAR(255)) RETURNS int(11) DETERMINISTIC BEGIN diff --git a/db/routines/pbx/functions/phone_format.sql b/db/routines/pbx/functions/phone_format.sql index b42dfe96b..dc697386a 100644 --- a/db/routines/pbx/functions/phone_format.sql +++ b/db/routines/pbx/functions/phone_format.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `pbx`.`phone_format`(vPhone VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `pbx`.`phone_format`(vPhone VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_general_ci DETERMINISTIC BEGIN diff --git a/db/routines/pbx/procedures/phone_isValid.sql b/db/routines/pbx/procedures/phone_isValid.sql index be3d2968a..083a3e54b 100644 --- a/db/routines/pbx/procedures/phone_isValid.sql +++ b/db/routines/pbx/procedures/phone_isValid.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `pbx`.`phone_isValid`(vPhone VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `pbx`.`phone_isValid`(vPhone VARCHAR(255)) BEGIN /** * Check if an phone has the correct format and diff --git a/db/routines/pbx/procedures/queue_isValid.sql b/db/routines/pbx/procedures/queue_isValid.sql index a07bc342b..52c752e09 100644 --- a/db/routines/pbx/procedures/queue_isValid.sql +++ b/db/routines/pbx/procedures/queue_isValid.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `pbx`.`queue_isValid`(vQueue VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `pbx`.`queue_isValid`(vQueue VARCHAR(255)) BEGIN /** * Check if an queue has the correct format and diff --git a/db/routines/pbx/procedures/sip_getExtension.sql b/db/routines/pbx/procedures/sip_getExtension.sql index 640da5a3e..25047fa1f 100644 --- a/db/routines/pbx/procedures/sip_getExtension.sql +++ b/db/routines/pbx/procedures/sip_getExtension.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `pbx`.`sip_getExtension`(vUserId INT(10)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `pbx`.`sip_getExtension`(vUserId INT(10)) BEGIN /* diff --git a/db/routines/pbx/procedures/sip_isValid.sql b/db/routines/pbx/procedures/sip_isValid.sql index d9c45831d..4a0182bcc 100644 --- a/db/routines/pbx/procedures/sip_isValid.sql +++ b/db/routines/pbx/procedures/sip_isValid.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `pbx`.`sip_isValid`(vExtension VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `pbx`.`sip_isValid`(vExtension VARCHAR(255)) BEGIN /** * Check if an extension has the correct format and diff --git a/db/routines/pbx/procedures/sip_setPassword.sql b/db/routines/pbx/procedures/sip_setPassword.sql index 146e7a502..14e0b05c5 100644 --- a/db/routines/pbx/procedures/sip_setPassword.sql +++ b/db/routines/pbx/procedures/sip_setPassword.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `pbx`.`sip_setPassword`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `pbx`.`sip_setPassword`( vUser VARCHAR(255), vPassword VARCHAR(255) ) diff --git a/db/routines/pbx/triggers/blacklist_beforeInsert.sql b/db/routines/pbx/triggers/blacklist_beforeInsert.sql index 6bc7909d8..ff55c2647 100644 --- a/db/routines/pbx/triggers/blacklist_beforeInsert.sql +++ b/db/routines/pbx/triggers/blacklist_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`blacklist_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`blacklist_beforeInsert` BEFORE INSERT ON `blacklist` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/blacklist_berforeUpdate.sql b/db/routines/pbx/triggers/blacklist_berforeUpdate.sql index 741b34c0a..84f2c4bbb 100644 --- a/db/routines/pbx/triggers/blacklist_berforeUpdate.sql +++ b/db/routines/pbx/triggers/blacklist_berforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`blacklist_berforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`blacklist_berforeUpdate` BEFORE UPDATE ON `blacklist` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/followme_beforeInsert.sql b/db/routines/pbx/triggers/followme_beforeInsert.sql index 38413f53a..69f11c5e6 100644 --- a/db/routines/pbx/triggers/followme_beforeInsert.sql +++ b/db/routines/pbx/triggers/followme_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`followme_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`followme_beforeInsert` BEFORE INSERT ON `followme` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/followme_beforeUpdate.sql b/db/routines/pbx/triggers/followme_beforeUpdate.sql index 67c243c7f..697c18974 100644 --- a/db/routines/pbx/triggers/followme_beforeUpdate.sql +++ b/db/routines/pbx/triggers/followme_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`followme_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`followme_beforeUpdate` BEFORE UPDATE ON `followme` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/queuePhone_beforeInsert.sql b/db/routines/pbx/triggers/queuePhone_beforeInsert.sql index 015a227ae..debe9c201 100644 --- a/db/routines/pbx/triggers/queuePhone_beforeInsert.sql +++ b/db/routines/pbx/triggers/queuePhone_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`queuePhone_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`queuePhone_beforeInsert` BEFORE INSERT ON `queuePhone` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/queuePhone_beforeUpdate.sql b/db/routines/pbx/triggers/queuePhone_beforeUpdate.sql index 892a10acd..9734cc277 100644 --- a/db/routines/pbx/triggers/queuePhone_beforeUpdate.sql +++ b/db/routines/pbx/triggers/queuePhone_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`queuePhone_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`queuePhone_beforeUpdate` BEFORE UPDATE ON `queuePhone` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/queue_beforeInsert.sql b/db/routines/pbx/triggers/queue_beforeInsert.sql index f601d8688..4644dea89 100644 --- a/db/routines/pbx/triggers/queue_beforeInsert.sql +++ b/db/routines/pbx/triggers/queue_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`queue_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`queue_beforeInsert` BEFORE INSERT ON `queue` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/queue_beforeUpdate.sql b/db/routines/pbx/triggers/queue_beforeUpdate.sql index 22e0afc67..a2923045e 100644 --- a/db/routines/pbx/triggers/queue_beforeUpdate.sql +++ b/db/routines/pbx/triggers/queue_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`queue_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`queue_beforeUpdate` BEFORE UPDATE ON `queue` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/sip_afterInsert.sql b/db/routines/pbx/triggers/sip_afterInsert.sql index ab1123106..7f0643a98 100644 --- a/db/routines/pbx/triggers/sip_afterInsert.sql +++ b/db/routines/pbx/triggers/sip_afterInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`sip_afterInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`sip_afterInsert` AFTER INSERT ON `sip` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/sip_afterUpdate.sql b/db/routines/pbx/triggers/sip_afterUpdate.sql index 2556d574c..d14df040c 100644 --- a/db/routines/pbx/triggers/sip_afterUpdate.sql +++ b/db/routines/pbx/triggers/sip_afterUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`sip_afterUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`sip_afterUpdate` AFTER UPDATE ON `sip` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/sip_beforeInsert.sql b/db/routines/pbx/triggers/sip_beforeInsert.sql index 500f30077..832232119 100644 --- a/db/routines/pbx/triggers/sip_beforeInsert.sql +++ b/db/routines/pbx/triggers/sip_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`sip_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`sip_beforeInsert` BEFORE INSERT ON `sip` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/triggers/sip_beforeUpdate.sql b/db/routines/pbx/triggers/sip_beforeUpdate.sql index 95c943100..e23b8e22e 100644 --- a/db/routines/pbx/triggers/sip_beforeUpdate.sql +++ b/db/routines/pbx/triggers/sip_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `pbx`.`sip_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `pbx`.`sip_beforeUpdate` BEFORE UPDATE ON `sip` FOR EACH ROW BEGIN diff --git a/db/routines/pbx/views/cdrConf.sql b/db/routines/pbx/views/cdrConf.sql index e4b8ad60a..adf24c87d 100644 --- a/db/routines/pbx/views/cdrConf.sql +++ b/db/routines/pbx/views/cdrConf.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pbx`.`cdrConf` AS SELECT `c`.`call_date` AS `calldate`, diff --git a/db/routines/pbx/views/followmeConf.sql b/db/routines/pbx/views/followmeConf.sql index 7c92301d1..75eb25ff2 100644 --- a/db/routines/pbx/views/followmeConf.sql +++ b/db/routines/pbx/views/followmeConf.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pbx`.`followmeConf` AS SELECT `f`.`extension` AS `name`, diff --git a/db/routines/pbx/views/followmeNumberConf.sql b/db/routines/pbx/views/followmeNumberConf.sql index f80dd5a9d..c83b639a8 100644 --- a/db/routines/pbx/views/followmeNumberConf.sql +++ b/db/routines/pbx/views/followmeNumberConf.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pbx`.`followmeNumberConf` AS SELECT `f`.`extension` AS `name`, diff --git a/db/routines/pbx/views/queueConf.sql b/db/routines/pbx/views/queueConf.sql index 8416bdb52..107989801 100644 --- a/db/routines/pbx/views/queueConf.sql +++ b/db/routines/pbx/views/queueConf.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pbx`.`queueConf` AS SELECT `q`.`name` AS `name`, diff --git a/db/routines/pbx/views/queueMemberConf.sql b/db/routines/pbx/views/queueMemberConf.sql index 734313c7b..7007daa1e 100644 --- a/db/routines/pbx/views/queueMemberConf.sql +++ b/db/routines/pbx/views/queueMemberConf.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pbx`.`queueMemberConf` AS SELECT `m`.`id` AS `uniqueid`, diff --git a/db/routines/pbx/views/sipConf.sql b/db/routines/pbx/views/sipConf.sql index 302f967ec..0765264bc 100644 --- a/db/routines/pbx/views/sipConf.sql +++ b/db/routines/pbx/views/sipConf.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pbx`.`sipConf` AS SELECT `s`.`user_id` AS `id`, diff --git a/db/routines/psico/procedures/answerSort.sql b/db/routines/psico/procedures/answerSort.sql index c7fd7e48d..75a317b37 100644 --- a/db/routines/psico/procedures/answerSort.sql +++ b/db/routines/psico/procedures/answerSort.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `psico`.`answerSort`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `psico`.`answerSort`() BEGIN UPDATE answer diff --git a/db/routines/psico/procedures/examNew.sql b/db/routines/psico/procedures/examNew.sql index 5b8eada3a..4f27212f6 100644 --- a/db/routines/psico/procedures/examNew.sql +++ b/db/routines/psico/procedures/examNew.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `psico`.`examNew`(vFellow VARCHAR(50), vType INT, vQuestionsNumber INT, OUT vExamFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `psico`.`examNew`(vFellow VARCHAR(50), vType INT, vQuestionsNumber INT, OUT vExamFk INT) BEGIN DECLARE done BOOL DEFAULT FALSE; diff --git a/db/routines/psico/procedures/getExamQuestions.sql b/db/routines/psico/procedures/getExamQuestions.sql index 7545a3e79..9ab1eb6d0 100644 --- a/db/routines/psico/procedures/getExamQuestions.sql +++ b/db/routines/psico/procedures/getExamQuestions.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `psico`.`getExamQuestions`(vExamFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `psico`.`getExamQuestions`(vExamFk INT) BEGIN SELECT p.text,p.examFk,p.questionFk,p.answerFk,p.id ,a.text AS answerText,a.correct, a.id AS answerFk diff --git a/db/routines/psico/procedures/getExamType.sql b/db/routines/psico/procedures/getExamType.sql index 25bda6682..d829950e6 100644 --- a/db/routines/psico/procedures/getExamType.sql +++ b/db/routines/psico/procedures/getExamType.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `psico`.`getExamType`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `psico`.`getExamType`() BEGIN SELECT id,name diff --git a/db/routines/psico/procedures/questionSort.sql b/db/routines/psico/procedures/questionSort.sql index 6e47c1c46..56c5ef4a9 100644 --- a/db/routines/psico/procedures/questionSort.sql +++ b/db/routines/psico/procedures/questionSort.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `psico`.`questionSort`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `psico`.`questionSort`() BEGIN UPDATE question diff --git a/db/routines/psico/views/examView.sql b/db/routines/psico/views/examView.sql index c8bc1a8ef..1aa768919 100644 --- a/db/routines/psico/views/examView.sql +++ b/db/routines/psico/views/examView.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `psico`.`examView` AS SELECT `q`.`text` AS `text`, diff --git a/db/routines/psico/views/results.sql b/db/routines/psico/views/results.sql index ad61099f3..1d7945d32 100644 --- a/db/routines/psico/views/results.sql +++ b/db/routines/psico/views/results.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `psico`.`results` AS SELECT `eq`.`examFk` AS `examFk`, diff --git a/db/routines/sage/functions/company_getCode.sql b/db/routines/sage/functions/company_getCode.sql index 412552086..bdb8c17fb 100644 --- a/db/routines/sage/functions/company_getCode.sql +++ b/db/routines/sage/functions/company_getCode.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `sage`.`company_getCode`(vCompanyFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `sage`.`company_getCode`(vCompanyFk INT) RETURNS int(2) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/sage/procedures/accountingMovements_add.sql b/db/routines/sage/procedures/accountingMovements_add.sql index e0a9abf08..8c129beb2 100644 --- a/db/routines/sage/procedures/accountingMovements_add.sql +++ b/db/routines/sage/procedures/accountingMovements_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`accountingMovements_add`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`accountingMovements_add`( vYear INT, vCompanyFk INT ) diff --git a/db/routines/sage/procedures/clean.sql b/db/routines/sage/procedures/clean.sql index 9e52d787a..f1175c4dc 100644 --- a/db/routines/sage/procedures/clean.sql +++ b/db/routines/sage/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`clean`() BEGIN /** * Maintains tables over time by removing unnecessary data diff --git a/db/routines/sage/procedures/clientSupplier_add.sql b/db/routines/sage/procedures/clientSupplier_add.sql index 177b0a7cb..2d1a51882 100644 --- a/db/routines/sage/procedures/clientSupplier_add.sql +++ b/db/routines/sage/procedures/clientSupplier_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`clientSupplier_add`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`clientSupplier_add`( vCompanyFk INT ) BEGIN diff --git a/db/routines/sage/procedures/importErrorNotification.sql b/db/routines/sage/procedures/importErrorNotification.sql index 1eae584e9..75b0cffc8 100644 --- a/db/routines/sage/procedures/importErrorNotification.sql +++ b/db/routines/sage/procedures/importErrorNotification.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`importErrorNotification`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`importErrorNotification`() BEGIN /** * Inserta notificaciones con los errores detectados durante la importación diff --git a/db/routines/sage/procedures/invoiceIn_add.sql b/db/routines/sage/procedures/invoiceIn_add.sql index 54a7bea6d..0898d6810 100644 --- a/db/routines/sage/procedures/invoiceIn_add.sql +++ b/db/routines/sage/procedures/invoiceIn_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`invoiceIn_add`(vInvoiceInFk INT, vXDiarioFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`invoiceIn_add`(vInvoiceInFk INT, vXDiarioFk INT) BEGIN /** * Traslada la info de contabilidad relacionada con las facturas recibidas diff --git a/db/routines/sage/procedures/invoiceIn_manager.sql b/db/routines/sage/procedures/invoiceIn_manager.sql index ba99ae9f2..f9bf0e92f 100644 --- a/db/routines/sage/procedures/invoiceIn_manager.sql +++ b/db/routines/sage/procedures/invoiceIn_manager.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`invoiceIn_manager`(vYear INT, vCompanyFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`invoiceIn_manager`(vYear INT, vCompanyFk INT) BEGIN /** * Traslada la info de contabilidad relacionada con las facturas recibidas diff --git a/db/routines/sage/procedures/invoiceOut_add.sql b/db/routines/sage/procedures/invoiceOut_add.sql index a71aa19a7..95d6a56dd 100644 --- a/db/routines/sage/procedures/invoiceOut_add.sql +++ b/db/routines/sage/procedures/invoiceOut_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`invoiceOut_add`(IN vInvoiceOutFk INT, IN vXDiarioFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`invoiceOut_add`(IN vInvoiceOutFk INT, IN vXDiarioFk INT) BEGIN /** * Traslada la info de contabilidad relacionada con las facturas emitidas diff --git a/db/routines/sage/procedures/invoiceOut_manager.sql b/db/routines/sage/procedures/invoiceOut_manager.sql index cfacc330d..58c0f2a21 100644 --- a/db/routines/sage/procedures/invoiceOut_manager.sql +++ b/db/routines/sage/procedures/invoiceOut_manager.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`invoiceOut_manager`(vYear INT, vCompanyFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`invoiceOut_manager`(vYear INT, vCompanyFk INT) BEGIN /** * Traslada la info de contabilidad relacionada con las facturas emitidas diff --git a/db/routines/sage/procedures/pgc_add.sql b/db/routines/sage/procedures/pgc_add.sql index 67e3f59cd..78d80a9fe 100644 --- a/db/routines/sage/procedures/pgc_add.sql +++ b/db/routines/sage/procedures/pgc_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `sage`.`pgc_add`(vCompanyFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `sage`.`pgc_add`(vCompanyFk INT) BEGIN /** * Añade cuentas del plan general contable para exportarlos a Sage diff --git a/db/routines/sage/triggers/movConta_beforeUpdate.sql b/db/routines/sage/triggers/movConta_beforeUpdate.sql index f152ebe7f..316b28b7f 100644 --- a/db/routines/sage/triggers/movConta_beforeUpdate.sql +++ b/db/routines/sage/triggers/movConta_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `sage`.`movConta_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `sage`.`movConta_beforeUpdate` BEFORE UPDATE ON `movConta` FOR EACH ROW BEGIN diff --git a/db/routines/sage/views/clientLastTwoMonths.sql b/db/routines/sage/views/clientLastTwoMonths.sql index 24e85796b..059cb0780 100644 --- a/db/routines/sage/views/clientLastTwoMonths.sql +++ b/db/routines/sage/views/clientLastTwoMonths.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `sage`.`clientLastTwoMonths` AS SELECT `vn`.`invoiceOut`.`clientFk` AS `clientFk`, diff --git a/db/routines/sage/views/supplierLastThreeMonths.sql b/db/routines/sage/views/supplierLastThreeMonths.sql index 8fff1d42c..f841fd98c 100644 --- a/db/routines/sage/views/supplierLastThreeMonths.sql +++ b/db/routines/sage/views/supplierLastThreeMonths.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `sage`.`supplierLastThreeMonths` AS SELECT `vn`.`invoiceIn`.`supplierFk` AS `supplierFk`, diff --git a/db/routines/salix/events/accessToken_prune.sql b/db/routines/salix/events/accessToken_prune.sql index adcbb2301..28b04699f 100644 --- a/db/routines/salix/events/accessToken_prune.sql +++ b/db/routines/salix/events/accessToken_prune.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `salix`.`accessToken_prune` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `salix`.`accessToken_prune` ON SCHEDULE EVERY 1 DAY STARTS '2023-03-14 05:14:00.000' ON COMPLETION PRESERVE diff --git a/db/routines/salix/procedures/accessToken_prune.sql b/db/routines/salix/procedures/accessToken_prune.sql index 06ccbe96a..f1a8a0fe8 100644 --- a/db/routines/salix/procedures/accessToken_prune.sql +++ b/db/routines/salix/procedures/accessToken_prune.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `salix`.`accessToken_prune`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `salix`.`accessToken_prune`() BEGIN /** * Borra de la tabla salix.AccessToken todos aquellos tokens que hayan caducado diff --git a/db/routines/salix/views/Account.sql b/db/routines/salix/views/Account.sql index 0b75ab620..080e3e50b 100644 --- a/db/routines/salix/views/Account.sql +++ b/db/routines/salix/views/Account.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `salix`.`Account` AS SELECT `u`.`id` AS `id`, diff --git a/db/routines/salix/views/Role.sql b/db/routines/salix/views/Role.sql index 8fcd7c6be..b04ad82a6 100644 --- a/db/routines/salix/views/Role.sql +++ b/db/routines/salix/views/Role.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `salix`.`Role` AS SELECT `r`.`id` AS `id`, diff --git a/db/routines/salix/views/RoleMapping.sql b/db/routines/salix/views/RoleMapping.sql index 834ec0727..48500a05e 100644 --- a/db/routines/salix/views/RoleMapping.sql +++ b/db/routines/salix/views/RoleMapping.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `salix`.`RoleMapping` AS SELECT `u`.`id` * 1000 + `r`.`inheritsFrom` AS `id`, diff --git a/db/routines/salix/views/User.sql b/db/routines/salix/views/User.sql index b7536d6b1..e03803870 100644 --- a/db/routines/salix/views/User.sql +++ b/db/routines/salix/views/User.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `salix`.`User` AS SELECT `account`.`user`.`id` AS `id`, diff --git a/db/routines/srt/events/moving_clean.sql b/db/routines/srt/events/moving_clean.sql index 3ea64963b..a6f7792a2 100644 --- a/db/routines/srt/events/moving_clean.sql +++ b/db/routines/srt/events/moving_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `srt`.`moving_clean` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `srt`.`moving_clean` ON SCHEDULE EVERY 5 MINUTE STARTS '2022-01-21 00:00:00.000' ON COMPLETION PRESERVE diff --git a/db/routines/srt/functions/bid.sql b/db/routines/srt/functions/bid.sql index 84e30ed11..ee4ffc7d3 100644 --- a/db/routines/srt/functions/bid.sql +++ b/db/routines/srt/functions/bid.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`bid`(vCode VARCHAR(3)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`bid`(vCode VARCHAR(3)) RETURNS int(11) DETERMINISTIC BEGIN diff --git a/db/routines/srt/functions/bufferPool_get.sql b/db/routines/srt/functions/bufferPool_get.sql index f3e9d2596..1576381f5 100644 --- a/db/routines/srt/functions/bufferPool_get.sql +++ b/db/routines/srt/functions/bufferPool_get.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`bufferPool_get`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`bufferPool_get`() RETURNS int(11) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/buffer_get.sql b/db/routines/srt/functions/buffer_get.sql index b66654839..55150bd99 100644 --- a/db/routines/srt/functions/buffer_get.sql +++ b/db/routines/srt/functions/buffer_get.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`buffer_get`(vExpeditionFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`buffer_get`(vExpeditionFk INT) RETURNS int(11) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/buffer_getRandom.sql b/db/routines/srt/functions/buffer_getRandom.sql index 12134c1e3..bc7229594 100644 --- a/db/routines/srt/functions/buffer_getRandom.sql +++ b/db/routines/srt/functions/buffer_getRandom.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`buffer_getRandom`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`buffer_getRandom`() RETURNS int(11) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/buffer_getState.sql b/db/routines/srt/functions/buffer_getState.sql index 79d455138..b5c4ac2e4 100644 --- a/db/routines/srt/functions/buffer_getState.sql +++ b/db/routines/srt/functions/buffer_getState.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`buffer_getState`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`buffer_getState`(vSelf INT) RETURNS varchar(20) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/buffer_getType.sql b/db/routines/srt/functions/buffer_getType.sql index 0db73a0d3..4b4194b3c 100644 --- a/db/routines/srt/functions/buffer_getType.sql +++ b/db/routines/srt/functions/buffer_getType.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`buffer_getType`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`buffer_getType`(vSelf INT) RETURNS varchar(20) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/buffer_isFull.sql b/db/routines/srt/functions/buffer_isFull.sql index b404a60d6..a1ae08484 100644 --- a/db/routines/srt/functions/buffer_isFull.sql +++ b/db/routines/srt/functions/buffer_isFull.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`buffer_isFull`(vBufferFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`buffer_isFull`(vBufferFk INT) RETURNS tinyint(1) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/dayMinute.sql b/db/routines/srt/functions/dayMinute.sql index a10367863..ab66dd7d2 100644 --- a/db/routines/srt/functions/dayMinute.sql +++ b/db/routines/srt/functions/dayMinute.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`dayMinute`(vDateTime DATETIME) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`dayMinute`(vDateTime DATETIME) RETURNS int(11) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/expedition_check.sql b/db/routines/srt/functions/expedition_check.sql index 948ef449a..314cafd96 100644 --- a/db/routines/srt/functions/expedition_check.sql +++ b/db/routines/srt/functions/expedition_check.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`expedition_check`(vExpeditionFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`expedition_check`(vExpeditionFk INT) RETURNS int(11) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/functions/expedition_getDayMinute.sql b/db/routines/srt/functions/expedition_getDayMinute.sql index 1882dec0f..01ff534f5 100644 --- a/db/routines/srt/functions/expedition_getDayMinute.sql +++ b/db/routines/srt/functions/expedition_getDayMinute.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `srt`.`expedition_getDayMinute`(vExpeditionFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `srt`.`expedition_getDayMinute`(vExpeditionFk INT) RETURNS int(11) NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/srt/procedures/buffer_getExpCount.sql b/db/routines/srt/procedures/buffer_getExpCount.sql index d01feee79..5ead3d421 100644 --- a/db/routines/srt/procedures/buffer_getExpCount.sql +++ b/db/routines/srt/procedures/buffer_getExpCount.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_getExpCount`(IN vBufferFk INT, OUT vExpCount INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_getExpCount`(IN vBufferFk INT, OUT vExpCount INT) BEGIN /* Devuelve el número de expediciones de un buffer * diff --git a/db/routines/srt/procedures/buffer_getStateType.sql b/db/routines/srt/procedures/buffer_getStateType.sql index 4140cb3a6..bba8202db 100644 --- a/db/routines/srt/procedures/buffer_getStateType.sql +++ b/db/routines/srt/procedures/buffer_getStateType.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_getStateType`(vBufferFk INT, OUT vStateFk INT, OUT vTypeFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_getStateType`(vBufferFk INT, OUT vStateFk INT, OUT vTypeFk INT) BEGIN /** diff --git a/db/routines/srt/procedures/buffer_giveBack.sql b/db/routines/srt/procedures/buffer_giveBack.sql index 755951e7b..f8d349914 100644 --- a/db/routines/srt/procedures/buffer_giveBack.sql +++ b/db/routines/srt/procedures/buffer_giveBack.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_giveBack`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_giveBack`(vSelf INT) BEGIN /* Devuelve una caja al celluveyor * diff --git a/db/routines/srt/procedures/buffer_readPhotocell.sql b/db/routines/srt/procedures/buffer_readPhotocell.sql index e2e1af8bb..2bf2cfa1d 100644 --- a/db/routines/srt/procedures/buffer_readPhotocell.sql +++ b/db/routines/srt/procedures/buffer_readPhotocell.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_readPhotocell`(vSelf INT, vNumber INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_readPhotocell`(vSelf INT, vNumber INT) BEGIN /** * Establece el estado de un buffer en función del número de fotocélulas activas diff --git a/db/routines/srt/procedures/buffer_setEmpty.sql b/db/routines/srt/procedures/buffer_setEmpty.sql index 776b25310..e97d397ed 100644 --- a/db/routines/srt/procedures/buffer_setEmpty.sql +++ b/db/routines/srt/procedures/buffer_setEmpty.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_setEmpty`(vBufferFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_setEmpty`(vBufferFk INT) BEGIN /** diff --git a/db/routines/srt/procedures/buffer_setState.sql b/db/routines/srt/procedures/buffer_setState.sql index 3ac3c60da..f0f136942 100644 --- a/db/routines/srt/procedures/buffer_setState.sql +++ b/db/routines/srt/procedures/buffer_setState.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_setState`(vBufferFk INT(11), vStateFk INT(11)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_setState`(vBufferFk INT(11), vStateFk INT(11)) BEGIN /** diff --git a/db/routines/srt/procedures/buffer_setStateType.sql b/db/routines/srt/procedures/buffer_setStateType.sql index a9f66509e..954a380ac 100644 --- a/db/routines/srt/procedures/buffer_setStateType.sql +++ b/db/routines/srt/procedures/buffer_setStateType.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_setStateType`(vBufferFk INT, vState VARCHAR(25), vType VARCHAR(25)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_setStateType`(vBufferFk INT, vState VARCHAR(25), vType VARCHAR(25)) BEGIN /** diff --git a/db/routines/srt/procedures/buffer_setType.sql b/db/routines/srt/procedures/buffer_setType.sql index b880262dd..7d6c508dc 100644 --- a/db/routines/srt/procedures/buffer_setType.sql +++ b/db/routines/srt/procedures/buffer_setType.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_setType`(vBufferFk INT(11), vTypeFk INT(11)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_setType`(vBufferFk INT(11), vTypeFk INT(11)) BEGIN /** * Cambia el tipo de un buffer, si está permitido diff --git a/db/routines/srt/procedures/buffer_setTypeByName.sql b/db/routines/srt/procedures/buffer_setTypeByName.sql index ad6caff42..9365d5399 100644 --- a/db/routines/srt/procedures/buffer_setTypeByName.sql +++ b/db/routines/srt/procedures/buffer_setTypeByName.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`buffer_setTypeByName`(vBufferFk INT(11), vTypeName VARCHAR(100)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_setTypeByName`(vBufferFk INT(11), vTypeName VARCHAR(100)) BEGIN /** diff --git a/db/routines/srt/procedures/clean.sql b/db/routines/srt/procedures/clean.sql index 3e9053300..3d02ae0cd 100644 --- a/db/routines/srt/procedures/clean.sql +++ b/db/routines/srt/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`clean`() BEGIN DECLARE vLastDated DATE DEFAULT TIMESTAMPADD(WEEK,-2,util.VN_CURDATE()); diff --git a/db/routines/srt/procedures/expeditionLoading_add.sql b/db/routines/srt/procedures/expeditionLoading_add.sql index bb68e395c..7fb53c2c6 100644 --- a/db/routines/srt/procedures/expeditionLoading_add.sql +++ b/db/routines/srt/procedures/expeditionLoading_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expeditionLoading_add`(vExpeditionFk INT, vBufferFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expeditionLoading_add`(vExpeditionFk INT, vBufferFk INT) BEGIN DECLARE vMessage VARCHAR(50) DEFAULT ''; diff --git a/db/routines/srt/procedures/expedition_arrived.sql b/db/routines/srt/procedures/expedition_arrived.sql index 03108e90d..2d2c093bc 100644 --- a/db/routines/srt/procedures/expedition_arrived.sql +++ b/db/routines/srt/procedures/expedition_arrived.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_arrived`(vExpeditionFk INT, vBufferFk INT, OUT vTypeFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_arrived`(vExpeditionFk INT, vBufferFk INT, OUT vTypeFk INT) BEGIN /** * La expedición ha entrado en un buffer, superando fc2 diff --git a/db/routines/srt/procedures/expedition_bufferOut.sql b/db/routines/srt/procedures/expedition_bufferOut.sql index 56d32614b..69e1fb791 100644 --- a/db/routines/srt/procedures/expedition_bufferOut.sql +++ b/db/routines/srt/procedures/expedition_bufferOut.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_bufferOut`(vBufferToFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_bufferOut`(vBufferToFk INT) BEGIN /** diff --git a/db/routines/srt/procedures/expedition_entering.sql b/db/routines/srt/procedures/expedition_entering.sql index 2eab7d0e0..f1b773edb 100644 --- a/db/routines/srt/procedures/expedition_entering.sql +++ b/db/routines/srt/procedures/expedition_entering.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_entering`(vExpeditionFk INT, OUT vExpeditionOutFk INT ) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_entering`(vExpeditionFk INT, OUT vExpeditionOutFk INT ) BEGIN /** diff --git a/db/routines/srt/procedures/expedition_get.sql b/db/routines/srt/procedures/expedition_get.sql index d0edd4b15..91a0e2ace 100644 --- a/db/routines/srt/procedures/expedition_get.sql +++ b/db/routines/srt/procedures/expedition_get.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_get`(vAntennaFk INT, OUT vExpeditionOutFk INT ) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_get`(vAntennaFk INT, OUT vExpeditionOutFk INT ) BEGIN DECLARE vId INT; diff --git a/db/routines/srt/procedures/expedition_groupOut.sql b/db/routines/srt/procedures/expedition_groupOut.sql index 340049238..5c4540ff6 100644 --- a/db/routines/srt/procedures/expedition_groupOut.sql +++ b/db/routines/srt/procedures/expedition_groupOut.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_groupOut`(vDayMinute INT, vBufferToFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_groupOut`(vDayMinute INT, vBufferToFk INT) BEGIN /** diff --git a/db/routines/srt/procedures/expedition_in.sql b/db/routines/srt/procedures/expedition_in.sql index ca783e78f..c6f75876c 100644 --- a/db/routines/srt/procedures/expedition_in.sql +++ b/db/routines/srt/procedures/expedition_in.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_in`(vBufferFk INT, OUT vExpeditionFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_in`(vBufferFk INT, OUT vExpeditionFk INT) proc:BEGIN /** diff --git a/db/routines/srt/procedures/expedition_moving.sql b/db/routines/srt/procedures/expedition_moving.sql index 095c5f6b1..1277ed2bd 100644 --- a/db/routines/srt/procedures/expedition_moving.sql +++ b/db/routines/srt/procedures/expedition_moving.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_moving`(vBufferFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_moving`(vBufferFk INT) BEGIN /** diff --git a/db/routines/srt/procedures/expedition_out.sql b/db/routines/srt/procedures/expedition_out.sql index 7c5bb8526..5e6608561 100644 --- a/db/routines/srt/procedures/expedition_out.sql +++ b/db/routines/srt/procedures/expedition_out.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_out`(vBufferFk INT, OUT vTypeFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_out`(vBufferFk INT, OUT vTypeFk INT) proc:BEGIN /** * Una expedición ha salido de un buffer por el extremo distal diff --git a/db/routines/srt/procedures/expedition_outAll.sql b/db/routines/srt/procedures/expedition_outAll.sql index 109ddc817..ffe925c9d 100644 --- a/db/routines/srt/procedures/expedition_outAll.sql +++ b/db/routines/srt/procedures/expedition_outAll.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_outAll`(vBufferFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_outAll`(vBufferFk INT) BEGIN /** diff --git a/db/routines/srt/procedures/expedition_relocate.sql b/db/routines/srt/procedures/expedition_relocate.sql index 8a5e41ca9..0f940beff 100644 --- a/db/routines/srt/procedures/expedition_relocate.sql +++ b/db/routines/srt/procedures/expedition_relocate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_relocate`(vExpeditionFk INT, vBufferToFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_relocate`(vExpeditionFk INT, vBufferToFk INT) proc:BEGIN /** diff --git a/db/routines/srt/procedures/expedition_reset.sql b/db/routines/srt/procedures/expedition_reset.sql index fd7698145..153edfad2 100644 --- a/db/routines/srt/procedures/expedition_reset.sql +++ b/db/routines/srt/procedures/expedition_reset.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_reset`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_reset`() BEGIN DELETE FROM srt.moving; diff --git a/db/routines/srt/procedures/expedition_routeOut.sql b/db/routines/srt/procedures/expedition_routeOut.sql index 325a6bb94..d40384e1f 100644 --- a/db/routines/srt/procedures/expedition_routeOut.sql +++ b/db/routines/srt/procedures/expedition_routeOut.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_routeOut`(vRouteFk INT, vBufferToFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_routeOut`(vRouteFk INT, vBufferToFk INT) BEGIN /** diff --git a/db/routines/srt/procedures/expedition_scan.sql b/db/routines/srt/procedures/expedition_scan.sql index 81caa4bef..e3fcfddef 100644 --- a/db/routines/srt/procedures/expedition_scan.sql +++ b/db/routines/srt/procedures/expedition_scan.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_scan`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_scan`(vSelf INT) BEGIN /* Actualiza el estado de una expedicion a OUT, al ser escaneada manualmente diff --git a/db/routines/srt/procedures/expedition_setDimensions.sql b/db/routines/srt/procedures/expedition_setDimensions.sql index fba5f373c..0b4fea28f 100644 --- a/db/routines/srt/procedures/expedition_setDimensions.sql +++ b/db/routines/srt/procedures/expedition_setDimensions.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_setDimensions`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_setDimensions`( vExpeditionFk INT, vWeight DECIMAL(10,2), vLength INT, diff --git a/db/routines/srt/procedures/expedition_weighing.sql b/db/routines/srt/procedures/expedition_weighing.sql index 372212549..bb35edb27 100644 --- a/db/routines/srt/procedures/expedition_weighing.sql +++ b/db/routines/srt/procedures/expedition_weighing.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`expedition_weighing`(vWeight DECIMAL(10,2), vExpeditionFk INT, OUT vExpeditionOutFk INT ) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`expedition_weighing`(vWeight DECIMAL(10,2), vExpeditionFk INT, OUT vExpeditionOutFk INT ) BEGIN /** diff --git a/db/routines/srt/procedures/failureLog_add.sql b/db/routines/srt/procedures/failureLog_add.sql index 5ca49a2e0..b572e8503 100644 --- a/db/routines/srt/procedures/failureLog_add.sql +++ b/db/routines/srt/procedures/failureLog_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`failureLog_add`(vDescription VARCHAR(100)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`failureLog_add`(vDescription VARCHAR(100)) BEGIN /* Añade un registro a srt.failureLog diff --git a/db/routines/srt/procedures/lastRFID_add.sql b/db/routines/srt/procedures/lastRFID_add.sql index 704e1baa8..ec3c83d98 100644 --- a/db/routines/srt/procedures/lastRFID_add.sql +++ b/db/routines/srt/procedures/lastRFID_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`lastRFID_add`(vCode VARCHAR(20), vAntennaFk INT, vAntennaPortFk INT, vPeakRssi INT, vSeenCount INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`lastRFID_add`(vCode VARCHAR(20), vAntennaFk INT, vAntennaPortFk INT, vPeakRssi INT, vSeenCount INT) BEGIN /* Insert a new record in lastRFID table diff --git a/db/routines/srt/procedures/lastRFID_add_beta.sql b/db/routines/srt/procedures/lastRFID_add_beta.sql index 01ad90aff..bbeb32410 100644 --- a/db/routines/srt/procedures/lastRFID_add_beta.sql +++ b/db/routines/srt/procedures/lastRFID_add_beta.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`lastRFID_add_beta`(vCode VARCHAR(20), vAntennaFk INT, vAntennaPortFk INT, vPeakRssi INT, vSeenCount INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`lastRFID_add_beta`(vCode VARCHAR(20), vAntennaFk INT, vAntennaPortFk INT, vPeakRssi INT, vSeenCount INT) BEGIN /* Insert a new record in lastRFID table diff --git a/db/routines/srt/procedures/moving_CollidingSet.sql b/db/routines/srt/procedures/moving_CollidingSet.sql index bfaca4bbf..69c4f9d9e 100644 --- a/db/routines/srt/procedures/moving_CollidingSet.sql +++ b/db/routines/srt/procedures/moving_CollidingSet.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`moving_CollidingSet`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`moving_CollidingSet`() BEGIN diff --git a/db/routines/srt/procedures/moving_between.sql b/db/routines/srt/procedures/moving_between.sql index ccb54353f..41822d341 100644 --- a/db/routines/srt/procedures/moving_between.sql +++ b/db/routines/srt/procedures/moving_between.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`moving_between`(vBufferA INT, vBufferB INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`moving_between`(vBufferA INT, vBufferB INT) BEGIN DECLARE vExpeditionFk INT; diff --git a/db/routines/srt/procedures/moving_clean.sql b/db/routines/srt/procedures/moving_clean.sql index bad9edbb5..b8fae7ff4 100644 --- a/db/routines/srt/procedures/moving_clean.sql +++ b/db/routines/srt/procedures/moving_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`moving_clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`moving_clean`() BEGIN /** * Elimina movimientos por inactividad diff --git a/db/routines/srt/procedures/moving_delete.sql b/db/routines/srt/procedures/moving_delete.sql index 926b4b595..38491105a 100644 --- a/db/routines/srt/procedures/moving_delete.sql +++ b/db/routines/srt/procedures/moving_delete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`moving_delete`(vExpeditionFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`moving_delete`(vExpeditionFk INT) BEGIN /* Elimina un movimiento diff --git a/db/routines/srt/procedures/moving_groupOut.sql b/db/routines/srt/procedures/moving_groupOut.sql index 28556d20d..d901f0ca9 100644 --- a/db/routines/srt/procedures/moving_groupOut.sql +++ b/db/routines/srt/procedures/moving_groupOut.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`moving_groupOut`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`moving_groupOut`() proc: BEGIN DECLARE vDayMinute INT; diff --git a/db/routines/srt/procedures/moving_next.sql b/db/routines/srt/procedures/moving_next.sql index 75270aed1..6c76b8373 100644 --- a/db/routines/srt/procedures/moving_next.sql +++ b/db/routines/srt/procedures/moving_next.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`moving_next`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`moving_next`() BEGIN DECLARE vExpeditionFk INT; diff --git a/db/routines/srt/procedures/photocell_setActive.sql b/db/routines/srt/procedures/photocell_setActive.sql index 63858a83c..c89e9dc9d 100644 --- a/db/routines/srt/procedures/photocell_setActive.sql +++ b/db/routines/srt/procedures/photocell_setActive.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`photocell_setActive`(vBufferFk int, vPosition int, vIsActive bool) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`photocell_setActive`(vBufferFk int, vPosition int, vIsActive bool) BEGIN REPLACE srt.photocell VALUES (vbufferFk, vPosition, vIsActive); END$$ diff --git a/db/routines/srt/procedures/randomMoving.sql b/db/routines/srt/procedures/randomMoving.sql index 01a9eaca4..b4bdd6591 100644 --- a/db/routines/srt/procedures/randomMoving.sql +++ b/db/routines/srt/procedures/randomMoving.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`randomMoving`(vBufferMin INT, vBufferMax INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`randomMoving`(vBufferMin INT, vBufferMax INT) BEGIN DECLARE vBufferOld INT DEFAULT 0; DECLARE vBufferFk INT; diff --git a/db/routines/srt/procedures/randomMoving_Launch.sql b/db/routines/srt/procedures/randomMoving_Launch.sql index 84003a50a..031e54873 100644 --- a/db/routines/srt/procedures/randomMoving_Launch.sql +++ b/db/routines/srt/procedures/randomMoving_Launch.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`randomMoving_Launch`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`randomMoving_Launch`() BEGIN DECLARE i INT DEFAULT 5; diff --git a/db/routines/srt/procedures/restart.sql b/db/routines/srt/procedures/restart.sql index 41871863c..96adb3bfa 100644 --- a/db/routines/srt/procedures/restart.sql +++ b/db/routines/srt/procedures/restart.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`restart`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`restart`() BEGIN /* diff --git a/db/routines/srt/procedures/start.sql b/db/routines/srt/procedures/start.sql index 51a0a300b..8e5250796 100644 --- a/db/routines/srt/procedures/start.sql +++ b/db/routines/srt/procedures/start.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`start`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`start`() BEGIN /* diff --git a/db/routines/srt/procedures/stop.sql b/db/routines/srt/procedures/stop.sql index d649412aa..a6fd12bb2 100644 --- a/db/routines/srt/procedures/stop.sql +++ b/db/routines/srt/procedures/stop.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`stop`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`stop`() BEGIN /* diff --git a/db/routines/srt/procedures/test.sql b/db/routines/srt/procedures/test.sql index 571e415f2..59a76eb81 100644 --- a/db/routines/srt/procedures/test.sql +++ b/db/routines/srt/procedures/test.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `srt`.`test`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`test`() BEGIN SELECT 'procedimiento ejecutado con éxito'; diff --git a/db/routines/srt/triggers/expedition_beforeUpdate.sql b/db/routines/srt/triggers/expedition_beforeUpdate.sql index 335c69bab..b8933aaf5 100644 --- a/db/routines/srt/triggers/expedition_beforeUpdate.sql +++ b/db/routines/srt/triggers/expedition_beforeUpdate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `srt`.`expedition_beforeUpdate` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `srt`.`expedition_beforeUpdate` BEFORE UPDATE ON `expedition` FOR EACH ROW BEGIN diff --git a/db/routines/srt/triggers/moving_afterInsert.sql b/db/routines/srt/triggers/moving_afterInsert.sql index dcf8a977e..aaa09c99c 100644 --- a/db/routines/srt/triggers/moving_afterInsert.sql +++ b/db/routines/srt/triggers/moving_afterInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `srt`.`moving_afterInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `srt`.`moving_afterInsert` AFTER INSERT ON `moving` FOR EACH ROW BEGIN diff --git a/db/routines/srt/views/bufferDayMinute.sql b/db/routines/srt/views/bufferDayMinute.sql index 0156b74f5..d2108e513 100644 --- a/db/routines/srt/views/bufferDayMinute.sql +++ b/db/routines/srt/views/bufferDayMinute.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `srt`.`bufferDayMinute` AS SELECT `b`.`id` AS `bufferFk`, diff --git a/db/routines/srt/views/bufferFreeLength.sql b/db/routines/srt/views/bufferFreeLength.sql index 7035220a0..4edf1db47 100644 --- a/db/routines/srt/views/bufferFreeLength.sql +++ b/db/routines/srt/views/bufferFreeLength.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `srt`.`bufferFreeLength` AS SELECT cast(`b`.`id` AS decimal(10, 0)) AS `bufferFk`, diff --git a/db/routines/srt/views/bufferStock.sql b/db/routines/srt/views/bufferStock.sql index dd0b2f1c2..ca04d3c01 100644 --- a/db/routines/srt/views/bufferStock.sql +++ b/db/routines/srt/views/bufferStock.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `srt`.`bufferStock` AS SELECT `e`.`id` AS `expeditionFk`, diff --git a/db/routines/srt/views/routePalletized.sql b/db/routines/srt/views/routePalletized.sql index 05113242a..15b493c6a 100644 --- a/db/routines/srt/views/routePalletized.sql +++ b/db/routines/srt/views/routePalletized.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `srt`.`routePalletized` AS SELECT `t`.`routeFk` AS `routeFk`, diff --git a/db/routines/srt/views/ticketPalletized.sql b/db/routines/srt/views/ticketPalletized.sql index 812e3659e..04ac24291 100644 --- a/db/routines/srt/views/ticketPalletized.sql +++ b/db/routines/srt/views/ticketPalletized.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `srt`.`ticketPalletized` AS SELECT `t`.`id` AS `ticketFk`, diff --git a/db/routines/srt/views/upperStickers.sql b/db/routines/srt/views/upperStickers.sql index fff8890f5..1cd72c12b 100644 --- a/db/routines/srt/views/upperStickers.sql +++ b/db/routines/srt/views/upperStickers.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `srt`.`upperStickers` AS SELECT `e`.`id` AS `expeditionFk`, diff --git a/db/routines/stock/events/log_clean.sql b/db/routines/stock/events/log_clean.sql index 68dec7385..973561a89 100644 --- a/db/routines/stock/events/log_clean.sql +++ b/db/routines/stock/events/log_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `stock`.`log_clean` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `stock`.`log_clean` ON SCHEDULE EVERY 1 DAY STARTS '2022-01-28 09:29:18.000' ON COMPLETION PRESERVE diff --git a/db/routines/stock/events/log_syncNoWait.sql b/db/routines/stock/events/log_syncNoWait.sql index e8f719ac2..954d37219 100644 --- a/db/routines/stock/events/log_syncNoWait.sql +++ b/db/routines/stock/events/log_syncNoWait.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `stock`.`log_syncNoWait` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `stock`.`log_syncNoWait` ON SCHEDULE EVERY 5 SECOND STARTS '2017-06-27 17:15:02.000' ON COMPLETION NOT PRESERVE diff --git a/db/routines/stock/procedures/inbound_addPick.sql b/db/routines/stock/procedures/inbound_addPick.sql index 136ade6c8..41b93a986 100644 --- a/db/routines/stock/procedures/inbound_addPick.sql +++ b/db/routines/stock/procedures/inbound_addPick.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`inbound_addPick`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`inbound_addPick`( vSelf INT, vOutboundFk INT, vQuantity INT diff --git a/db/routines/stock/procedures/inbound_removePick.sql b/db/routines/stock/procedures/inbound_removePick.sql index 75883bcb2..e183e1171 100644 --- a/db/routines/stock/procedures/inbound_removePick.sql +++ b/db/routines/stock/procedures/inbound_removePick.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`inbound_removePick`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`inbound_removePick`( vSelf INT, vOutboundFk INT, vQuantity INT, diff --git a/db/routines/stock/procedures/inbound_requestQuantity.sql b/db/routines/stock/procedures/inbound_requestQuantity.sql index 4c6fb4295..1cbc1908b 100644 --- a/db/routines/stock/procedures/inbound_requestQuantity.sql +++ b/db/routines/stock/procedures/inbound_requestQuantity.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`inbound_requestQuantity`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`inbound_requestQuantity`( vSelf INT, vRequested INT, vDated DATETIME, diff --git a/db/routines/stock/procedures/inbound_sync.sql b/db/routines/stock/procedures/inbound_sync.sql index 7d463e70d..77d3e42f7 100644 --- a/db/routines/stock/procedures/inbound_sync.sql +++ b/db/routines/stock/procedures/inbound_sync.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`inbound_sync`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`inbound_sync`(vSelf INT) BEGIN /** * Associates a inbound with their possible outbounds, updating it's available. diff --git a/db/routines/stock/procedures/log_clean.sql b/db/routines/stock/procedures/log_clean.sql index 9215246e1..56634b371 100644 --- a/db/routines/stock/procedures/log_clean.sql +++ b/db/routines/stock/procedures/log_clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_clean`() BEGIN DELETE FROM inbound WHERE dated = vn.getInventoryDate(); DELETE FROM outbound WHERE dated = vn.getInventoryDate(); diff --git a/db/routines/stock/procedures/log_delete.sql b/db/routines/stock/procedures/log_delete.sql index 8bf2aed56..e3b631b4e 100644 --- a/db/routines/stock/procedures/log_delete.sql +++ b/db/routines/stock/procedures/log_delete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_delete`(vTableName VARCHAR(255), vTableId INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_delete`(vTableName VARCHAR(255), vTableId INT) proc: BEGIN /** * Processes orphan transactions. diff --git a/db/routines/stock/procedures/log_refreshAll.sql b/db/routines/stock/procedures/log_refreshAll.sql index 9415379af..3eaad07f2 100644 --- a/db/routines/stock/procedures/log_refreshAll.sql +++ b/db/routines/stock/procedures/log_refreshAll.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_refreshAll`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_refreshAll`() BEGIN /** * Recalculates the entire cache. It takes a considerable time, diff --git a/db/routines/stock/procedures/log_refreshBuy.sql b/db/routines/stock/procedures/log_refreshBuy.sql index 68ab1b617..488c00a28 100644 --- a/db/routines/stock/procedures/log_refreshBuy.sql +++ b/db/routines/stock/procedures/log_refreshBuy.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_refreshBuy`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_refreshBuy`( `vTableName` VARCHAR(255), `vTableId` INT) BEGIN diff --git a/db/routines/stock/procedures/log_refreshOrder.sql b/db/routines/stock/procedures/log_refreshOrder.sql index 787fb6aa5..ce5b31cc8 100644 --- a/db/routines/stock/procedures/log_refreshOrder.sql +++ b/db/routines/stock/procedures/log_refreshOrder.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_refreshOrder`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_refreshOrder`( `vTableName` VARCHAR(255), `vTableId` INT) BEGIN diff --git a/db/routines/stock/procedures/log_refreshSale.sql b/db/routines/stock/procedures/log_refreshSale.sql index f982d405e..3054f8ecb 100644 --- a/db/routines/stock/procedures/log_refreshSale.sql +++ b/db/routines/stock/procedures/log_refreshSale.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_refreshSale`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_refreshSale`( `vTableName` VARCHAR(255), `vTableId` INT) BEGIN diff --git a/db/routines/stock/procedures/log_sync.sql b/db/routines/stock/procedures/log_sync.sql index 349e4b3db..5b03b6ab0 100644 --- a/db/routines/stock/procedures/log_sync.sql +++ b/db/routines/stock/procedures/log_sync.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_sync`(vSync BOOL) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_sync`(vSync BOOL) proc: BEGIN DECLARE vDone BOOL; DECLARE vLogId INT; diff --git a/db/routines/stock/procedures/log_syncNoWait.sql b/db/routines/stock/procedures/log_syncNoWait.sql index 897195f4d..00cc215fd 100644 --- a/db/routines/stock/procedures/log_syncNoWait.sql +++ b/db/routines/stock/procedures/log_syncNoWait.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`log_syncNoWait`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`log_syncNoWait`() BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN diff --git a/db/routines/stock/procedures/outbound_requestQuantity.sql b/db/routines/stock/procedures/outbound_requestQuantity.sql index 2ee262467..7ddc3545c 100644 --- a/db/routines/stock/procedures/outbound_requestQuantity.sql +++ b/db/routines/stock/procedures/outbound_requestQuantity.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`outbound_requestQuantity`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`outbound_requestQuantity`( vSelf INT, vRequested INT, vDated DATETIME, diff --git a/db/routines/stock/procedures/outbound_sync.sql b/db/routines/stock/procedures/outbound_sync.sql index 94b65e1b6..0de352176 100644 --- a/db/routines/stock/procedures/outbound_sync.sql +++ b/db/routines/stock/procedures/outbound_sync.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`outbound_sync`(vSelf INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`outbound_sync`(vSelf INT) BEGIN /** * Attaches a outbound with available inbounds. diff --git a/db/routines/stock/procedures/visible_log.sql b/db/routines/stock/procedures/visible_log.sql index cb11e9d3e..cc88d3205 100644 --- a/db/routines/stock/procedures/visible_log.sql +++ b/db/routines/stock/procedures/visible_log.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `stock`.`visible_log`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `stock`.`visible_log`( vIsPicked BOOL, vWarehouseFk INT, vItemFk INT, diff --git a/db/routines/stock/triggers/inbound_afterDelete.sql b/db/routines/stock/triggers/inbound_afterDelete.sql index a436d04a0..451dcc599 100644 --- a/db/routines/stock/triggers/inbound_afterDelete.sql +++ b/db/routines/stock/triggers/inbound_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `stock`.`inbound_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `stock`.`inbound_afterDelete` AFTER DELETE ON `inbound` FOR EACH ROW BEGIN diff --git a/db/routines/stock/triggers/inbound_beforeInsert.sql b/db/routines/stock/triggers/inbound_beforeInsert.sql index 3707a2b2a..723cb3222 100644 --- a/db/routines/stock/triggers/inbound_beforeInsert.sql +++ b/db/routines/stock/triggers/inbound_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `stock`.`inbound_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `stock`.`inbound_beforeInsert` BEFORE INSERT ON `inbound` FOR EACH ROW BEGIN diff --git a/db/routines/stock/triggers/outbound_afterDelete.sql b/db/routines/stock/triggers/outbound_afterDelete.sql index 1c90c3293..e7d756871 100644 --- a/db/routines/stock/triggers/outbound_afterDelete.sql +++ b/db/routines/stock/triggers/outbound_afterDelete.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `stock`.`outbound_afterDelete` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `stock`.`outbound_afterDelete` AFTER DELETE ON `outbound` FOR EACH ROW BEGIN diff --git a/db/routines/stock/triggers/outbound_beforeInsert.sql b/db/routines/stock/triggers/outbound_beforeInsert.sql index e0560d8f6..86546413e 100644 --- a/db/routines/stock/triggers/outbound_beforeInsert.sql +++ b/db/routines/stock/triggers/outbound_beforeInsert.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `stock`.`outbound_beforeInsert` +CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `stock`.`outbound_beforeInsert` BEFORE INSERT ON `outbound` FOR EACH ROW BEGIN diff --git a/db/routines/tmp/events/clean.sql b/db/routines/tmp/events/clean.sql index 75f022362..34b7139cc 100644 --- a/db/routines/tmp/events/clean.sql +++ b/db/routines/tmp/events/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `tmp`.`clean` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `tmp`.`clean` ON SCHEDULE EVERY 1 HOUR STARTS '2022-03-01 00:00:00.000' ON COMPLETION PRESERVE diff --git a/db/routines/tmp/procedures/clean.sql b/db/routines/tmp/procedures/clean.sql index 90ea69216..a15f98311 100644 --- a/db/routines/tmp/procedures/clean.sql +++ b/db/routines/tmp/procedures/clean.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `tmp`.`clean`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `tmp`.`clean`() BEGIN DECLARE vTableName VARCHAR(255); DECLARE vDone BOOL; diff --git a/db/routines/util/events/slowLog_prune.sql b/db/routines/util/events/slowLog_prune.sql index 1b339fbcd..aa9b0c184 100644 --- a/db/routines/util/events/slowLog_prune.sql +++ b/db/routines/util/events/slowLog_prune.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` EVENT `util`.`slowLog_prune` +CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `util`.`slowLog_prune` ON SCHEDULE EVERY 1 DAY STARTS '2021-10-08 00:00:00.000' ON COMPLETION PRESERVE diff --git a/db/routines/util/functions/VN_CURDATE.sql b/db/routines/util/functions/VN_CURDATE.sql index 0ceb0c4ed..692f097a0 100644 --- a/db/routines/util/functions/VN_CURDATE.sql +++ b/db/routines/util/functions/VN_CURDATE.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`VN_CURDATE`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_CURDATE`() RETURNS date DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/VN_CURTIME.sql b/db/routines/util/functions/VN_CURTIME.sql index 954ed2273..ae66ea500 100644 --- a/db/routines/util/functions/VN_CURTIME.sql +++ b/db/routines/util/functions/VN_CURTIME.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`VN_CURTIME`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_CURTIME`() RETURNS time DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/VN_NOW.sql b/db/routines/util/functions/VN_NOW.sql index 44e3ece44..47b1bb4fd 100644 --- a/db/routines/util/functions/VN_NOW.sql +++ b/db/routines/util/functions/VN_NOW.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`VN_NOW`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_NOW`() RETURNS datetime DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/VN_UNIX_TIMESTAMP.sql b/db/routines/util/functions/VN_UNIX_TIMESTAMP.sql index c168df9fd..717459862 100644 --- a/db/routines/util/functions/VN_UNIX_TIMESTAMP.sql +++ b/db/routines/util/functions/VN_UNIX_TIMESTAMP.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`VN_UNIX_TIMESTAMP`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_UNIX_TIMESTAMP`() RETURNS int(11) DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/VN_UTC_DATE.sql b/db/routines/util/functions/VN_UTC_DATE.sql index 803b6026f..2b40b7dc2 100644 --- a/db/routines/util/functions/VN_UTC_DATE.sql +++ b/db/routines/util/functions/VN_UTC_DATE.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`VN_UTC_DATE`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_UTC_DATE`() RETURNS date DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/VN_UTC_TIME.sql b/db/routines/util/functions/VN_UTC_TIME.sql index 3eaa7f431..930333d23 100644 --- a/db/routines/util/functions/VN_UTC_TIME.sql +++ b/db/routines/util/functions/VN_UTC_TIME.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`VN_UTC_TIME`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_UTC_TIME`() RETURNS time DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/VN_UTC_TIMESTAMP.sql b/db/routines/util/functions/VN_UTC_TIMESTAMP.sql index 530198cb9..97d125874 100644 --- a/db/routines/util/functions/VN_UTC_TIMESTAMP.sql +++ b/db/routines/util/functions/VN_UTC_TIMESTAMP.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`VN_UTC_TIMESTAMP`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_UTC_TIMESTAMP`() RETURNS datetime DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/accountNumberToIban.sql b/db/routines/util/functions/accountNumberToIban.sql index 811954547..49d3c917e 100644 --- a/db/routines/util/functions/accountNumberToIban.sql +++ b/db/routines/util/functions/accountNumberToIban.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`accountNumberToIban`( +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`accountNumberToIban`( vAccount VARCHAR(20) ) RETURNS varchar(4) CHARSET utf8mb3 COLLATE utf8mb3_general_ci diff --git a/db/routines/util/functions/accountShortToStandard.sql b/db/routines/util/functions/accountShortToStandard.sql index a3379d989..71e360bf3 100644 --- a/db/routines/util/functions/accountShortToStandard.sql +++ b/db/routines/util/functions/accountShortToStandard.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`accountShortToStandard`(vAccount VARCHAR(10)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`accountShortToStandard`(vAccount VARCHAR(10)) RETURNS varchar(10) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/binlogQueue_getDelay.sql b/db/routines/util/functions/binlogQueue_getDelay.sql index adbf0e98a..d6cf49377 100644 --- a/db/routines/util/functions/binlogQueue_getDelay.sql +++ b/db/routines/util/functions/binlogQueue_getDelay.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`binlogQueue_getDelay`(vCode VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`binlogQueue_getDelay`(vCode VARCHAR(255)) RETURNS BIGINT READS SQL DATA NOT DETERMINISTIC diff --git a/db/routines/util/functions/capitalizeFirst.sql b/db/routines/util/functions/capitalizeFirst.sql index 50e5f508e..859777de2 100644 --- a/db/routines/util/functions/capitalizeFirst.sql +++ b/db/routines/util/functions/capitalizeFirst.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`capitalizeFirst`(vString VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`capitalizeFirst`(vString VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_general_ci DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/checkPrintableChars.sql b/db/routines/util/functions/checkPrintableChars.sql index a327ed41d..a4addce24 100644 --- a/db/routines/util/functions/checkPrintableChars.sql +++ b/db/routines/util/functions/checkPrintableChars.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`checkPrintableChars`( +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`checkPrintableChars`( vString VARCHAR(255) ) RETURNS tinyint(1) DETERMINISTIC diff --git a/db/routines/util/functions/crypt.sql b/db/routines/util/functions/crypt.sql index 98308729e..664563cd0 100644 --- a/db/routines/util/functions/crypt.sql +++ b/db/routines/util/functions/crypt.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`crypt`(vText VARCHAR(255), vKey VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`crypt`(vText VARCHAR(255), vKey VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_general_ci NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/util/functions/cryptOff.sql b/db/routines/util/functions/cryptOff.sql index 1c268f070..bc281e4ec 100644 --- a/db/routines/util/functions/cryptOff.sql +++ b/db/routines/util/functions/cryptOff.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`cryptOff`(vText VARCHAR(255), vKey VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`cryptOff`(vText VARCHAR(255), vKey VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_general_ci NOT DETERMINISTIC READS SQL DATA diff --git a/db/routines/util/functions/dayEnd.sql b/db/routines/util/functions/dayEnd.sql index 767e490d8..1da4dcfe6 100644 --- a/db/routines/util/functions/dayEnd.sql +++ b/db/routines/util/functions/dayEnd.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`dayEnd`(vDated DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`dayEnd`(vDated DATE) RETURNS datetime DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/firstDayOfMonth.sql b/db/routines/util/functions/firstDayOfMonth.sql index 298dba95a..77971c7b8 100644 --- a/db/routines/util/functions/firstDayOfMonth.sql +++ b/db/routines/util/functions/firstDayOfMonth.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`firstDayOfMonth`(vDate DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`firstDayOfMonth`(vDate DATE) RETURNS date DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/firstDayOfYear.sql b/db/routines/util/functions/firstDayOfYear.sql index f7a9f8daf..710c3a688 100644 --- a/db/routines/util/functions/firstDayOfYear.sql +++ b/db/routines/util/functions/firstDayOfYear.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`firstDayOfYear`(vDate DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`firstDayOfYear`(vDate DATE) RETURNS date DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/formatRow.sql b/db/routines/util/functions/formatRow.sql index b80e60e9f..b119df015 100644 --- a/db/routines/util/functions/formatRow.sql +++ b/db/routines/util/functions/formatRow.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`formatRow`(vType CHAR(3), vValues VARCHAR(512)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`formatRow`(vType CHAR(3), vValues VARCHAR(512)) RETURNS varchar(512) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/formatTable.sql b/db/routines/util/functions/formatTable.sql index a717e8c07..00a2b50bf 100644 --- a/db/routines/util/functions/formatTable.sql +++ b/db/routines/util/functions/formatTable.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`formatTable`(vFields VARCHAR(512), vOldValues VARCHAR(512), vNewValues VARCHAR(512)) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`formatTable`(vFields VARCHAR(512), vOldValues VARCHAR(512), vNewValues VARCHAR(512)) RETURNS text CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/hasDateOverlapped.sql b/db/routines/util/functions/hasDateOverlapped.sql index ea73390e6..9441e201c 100644 --- a/db/routines/util/functions/hasDateOverlapped.sql +++ b/db/routines/util/functions/hasDateOverlapped.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`hasDateOverlapped`(vSarted1 DATE, vEnded1 DATE, vSarted2 DATE, vEnded2 DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`hasDateOverlapped`(vSarted1 DATE, vEnded1 DATE, vSarted2 DATE, vEnded2 DATE) RETURNS tinyint(1) DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/hmacSha2.sql b/db/routines/util/functions/hmacSha2.sql index cb36cac87..78611c118 100644 --- a/db/routines/util/functions/hmacSha2.sql +++ b/db/routines/util/functions/hmacSha2.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`hmacSha2`(`vAlg` SMALLINT, `vMsg` MEDIUMBLOB, `vKey` MEDIUMBLOB) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`hmacSha2`(`vAlg` SMALLINT, `vMsg` MEDIUMBLOB, `vKey` MEDIUMBLOB) RETURNS varchar(128) CHARSET utf8mb3 COLLATE utf8mb3_general_ci DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/isLeapYear.sql b/db/routines/util/functions/isLeapYear.sql index c51e98cda..2c7c96f3d 100644 --- a/db/routines/util/functions/isLeapYear.sql +++ b/db/routines/util/functions/isLeapYear.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`isLeapYear`(vYear INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`isLeapYear`(vYear INT) RETURNS tinyint(1) DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/json_removeNulls.sql b/db/routines/util/functions/json_removeNulls.sql index 45797e1bf..5fa741380 100644 --- a/db/routines/util/functions/json_removeNulls.sql +++ b/db/routines/util/functions/json_removeNulls.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`json_removeNulls`(vObject JSON) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`json_removeNulls`(vObject JSON) RETURNS longtext CHARSET utf8mb4 COLLATE utf8mb4_bin DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/lang.sql b/db/routines/util/functions/lang.sql index e7832993d..3431cdcc7 100644 --- a/db/routines/util/functions/lang.sql +++ b/db/routines/util/functions/lang.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`lang`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`lang`() RETURNS char(2) CHARSET utf8mb3 COLLATE utf8mb3_general_ci DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/lastDayOfYear.sql b/db/routines/util/functions/lastDayOfYear.sql index b60fc2cc7..52607ae21 100644 --- a/db/routines/util/functions/lastDayOfYear.sql +++ b/db/routines/util/functions/lastDayOfYear.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`lastDayOfYear`(vDate DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`lastDayOfYear`(vDate DATE) RETURNS date DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/log_formatDate.sql b/db/routines/util/functions/log_formatDate.sql index 0004461d1..84c269027 100644 --- a/db/routines/util/functions/log_formatDate.sql +++ b/db/routines/util/functions/log_formatDate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`log_formatDate`(vInstance JSON) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`log_formatDate`(vInstance JSON) RETURNS longtext CHARSET utf8mb4 COLLATE utf8mb4_bin DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/midnight.sql b/db/routines/util/functions/midnight.sql index b36a9668c..b37415682 100644 --- a/db/routines/util/functions/midnight.sql +++ b/db/routines/util/functions/midnight.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`midnight`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`midnight`() RETURNS datetime DETERMINISTIC READS SQL DATA diff --git a/db/routines/util/functions/mockTime.sql b/db/routines/util/functions/mockTime.sql index cbdac99e6..ab7859e7d 100644 --- a/db/routines/util/functions/mockTime.sql +++ b/db/routines/util/functions/mockTime.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`mockTime`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockTime`() RETURNS datetime DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/mockTimeBase.sql b/db/routines/util/functions/mockTimeBase.sql index f1cba9e17..7b3ea1a4a 100644 --- a/db/routines/util/functions/mockTimeBase.sql +++ b/db/routines/util/functions/mockTimeBase.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`mockTimeBase`(vIsUtc BOOL) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockTimeBase`(vIsUtc BOOL) RETURNS datetime DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/mockUtcTime.sql b/db/routines/util/functions/mockUtcTime.sql index 3132760ab..e79c3b241 100644 --- a/db/routines/util/functions/mockUtcTime.sql +++ b/db/routines/util/functions/mockUtcTime.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`mockUtcTime`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockUtcTime`() RETURNS datetime DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/nextWeek.sql b/db/routines/util/functions/nextWeek.sql index fc6abc40d..f764201aa 100644 --- a/db/routines/util/functions/nextWeek.sql +++ b/db/routines/util/functions/nextWeek.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`nextWeek`(vYearWeek INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`nextWeek`(vYearWeek INT) RETURNS int(11) DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/notification_send.sql b/db/routines/util/functions/notification_send.sql index 87f5ec43a..981cde2d6 100644 --- a/db/routines/util/functions/notification_send.sql +++ b/db/routines/util/functions/notification_send.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`notification_send`(vNotificationName VARCHAR(255), vParams TEXT, vAuthorFk INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`notification_send`(vNotificationName VARCHAR(255), vParams TEXT, vAuthorFk INT) RETURNS int(11) NOT DETERMINISTIC MODIFIES SQL DATA diff --git a/db/routines/util/functions/quarterFirstDay.sql b/db/routines/util/functions/quarterFirstDay.sql index a8d4c35ad..b8239ffc8 100644 --- a/db/routines/util/functions/quarterFirstDay.sql +++ b/db/routines/util/functions/quarterFirstDay.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`quarterFirstDay`(vYear INT, vQuarter INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`quarterFirstDay`(vYear INT, vQuarter INT) RETURNS date DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/quoteIdentifier.sql b/db/routines/util/functions/quoteIdentifier.sql index 96161b3ef..1c0c4c543 100644 --- a/db/routines/util/functions/quoteIdentifier.sql +++ b/db/routines/util/functions/quoteIdentifier.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`quoteIdentifier`(vString TEXT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`quoteIdentifier`(vString TEXT) RETURNS text CHARSET utf8mb3 COLLATE utf8mb3_general_ci DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/stringXor.sql b/db/routines/util/functions/stringXor.sql index e16ca4c43..252cd0040 100644 --- a/db/routines/util/functions/stringXor.sql +++ b/db/routines/util/functions/stringXor.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`stringXor`(vString MEDIUMBLOB, vConst TINYINT UNSIGNED) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`stringXor`(vString MEDIUMBLOB, vConst TINYINT UNSIGNED) RETURNS mediumblob DETERMINISTIC NO SQL diff --git a/db/routines/util/functions/today.sql b/db/routines/util/functions/today.sql index 5f65fe2e1..d57b04071 100644 --- a/db/routines/util/functions/today.sql +++ b/db/routines/util/functions/today.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`today`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`today`() RETURNS date DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/tomorrow.sql b/db/routines/util/functions/tomorrow.sql index e85af114e..71fbcf8f5 100644 --- a/db/routines/util/functions/tomorrow.sql +++ b/db/routines/util/functions/tomorrow.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`tomorrow`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`tomorrow`() RETURNS date DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/twoDaysAgo.sql b/db/routines/util/functions/twoDaysAgo.sql index e00d965a4..2612ed689 100644 --- a/db/routines/util/functions/twoDaysAgo.sql +++ b/db/routines/util/functions/twoDaysAgo.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`twoDaysAgo`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`twoDaysAgo`() RETURNS date DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/yearRelativePosition.sql b/db/routines/util/functions/yearRelativePosition.sql index bede2d809..e62e50eb4 100644 --- a/db/routines/util/functions/yearRelativePosition.sql +++ b/db/routines/util/functions/yearRelativePosition.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`yearRelativePosition`(vYear INT) +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`yearRelativePosition`(vYear INT) RETURNS varchar(20) CHARSET utf8mb3 COLLATE utf8mb3_general_ci DETERMINISTIC BEGIN diff --git a/db/routines/util/functions/yesterday.sql b/db/routines/util/functions/yesterday.sql index bc21a263a..a1938ab10 100644 --- a/db/routines/util/functions/yesterday.sql +++ b/db/routines/util/functions/yesterday.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` FUNCTION `util`.`yesterday`() +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`yesterday`() RETURNS date DETERMINISTIC BEGIN diff --git a/db/routines/util/procedures/checkHex.sql b/db/routines/util/procedures/checkHex.sql index 8fc4003f4..3cd5452e8 100644 --- a/db/routines/util/procedures/checkHex.sql +++ b/db/routines/util/procedures/checkHex.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`checkHex`(vParam VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`checkHex`(vParam VARCHAR(255)) BEGIN /** * Comprueba si vParam es un número hexadecimal que empieza por # y tiene una longitud total de 7 dígitos diff --git a/db/routines/util/procedures/connection_kill.sql b/db/routines/util/procedures/connection_kill.sql index 3b9ea17f3..b38509d1b 100644 --- a/db/routines/util/procedures/connection_kill.sql +++ b/db/routines/util/procedures/connection_kill.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`connection_kill`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`connection_kill`( vConnectionId BIGINT ) BEGIN diff --git a/db/routines/util/procedures/debugAdd.sql b/db/routines/util/procedures/debugAdd.sql index cf1c92606..a8f7b3aa2 100644 --- a/db/routines/util/procedures/debugAdd.sql +++ b/db/routines/util/procedures/debugAdd.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`debugAdd`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`debugAdd`( vVariable VARCHAR(255), vValue TEXT ) diff --git a/db/routines/util/procedures/exec.sql b/db/routines/util/procedures/exec.sql index 5fec91ec7..ca66884a5 100644 --- a/db/routines/util/procedures/exec.sql +++ b/db/routines/util/procedures/exec.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`exec`(vSqlQuery TEXT) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`exec`(vSqlQuery TEXT) SQL SECURITY INVOKER BEGIN /** diff --git a/db/routines/util/procedures/log_add.sql b/db/routines/util/procedures/log_add.sql index aa0ec2388..a5b1519c4 100644 --- a/db/routines/util/procedures/log_add.sql +++ b/db/routines/util/procedures/log_add.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`log_add`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`log_add`( vSchema VARCHAR(45), vEntity VARCHAR(45), vChangedModel VARCHAR(45), diff --git a/db/routines/util/procedures/log_addWithUser.sql b/db/routines/util/procedures/log_addWithUser.sql index 50c86eced..2e20821a6 100644 --- a/db/routines/util/procedures/log_addWithUser.sql +++ b/db/routines/util/procedures/log_addWithUser.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`log_addWithUser`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`log_addWithUser`( vSchema VARCHAR(45), vEntity VARCHAR(45), vChangedModel VARCHAR(45), diff --git a/db/routines/util/procedures/log_cleanInstances.sql b/db/routines/util/procedures/log_cleanInstances.sql index 029b50eea..756a8d1f3 100644 --- a/db/routines/util/procedures/log_cleanInstances.sql +++ b/db/routines/util/procedures/log_cleanInstances.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`log_cleanInstances`( +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`log_cleanInstances`( vActionCode VARCHAR(45), INOUT vOldInstance JSON, INOUT vNewInstance JSON) diff --git a/db/routines/util/procedures/procNoOverlap.sql b/db/routines/util/procedures/procNoOverlap.sql index 2a00138c4..9bb2f109e 100644 --- a/db/routines/util/procedures/procNoOverlap.sql +++ b/db/routines/util/procedures/procNoOverlap.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`procNoOverlap`(procName VARCHAR(255)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`procNoOverlap`(procName VARCHAR(255)) SQL SECURITY INVOKER proc: BEGIN /** diff --git a/db/routines/util/procedures/proc_changedPrivs.sql b/db/routines/util/procedures/proc_changedPrivs.sql index 69b212599..220652d1a 100644 --- a/db/routines/util/procedures/proc_changedPrivs.sql +++ b/db/routines/util/procedures/proc_changedPrivs.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`proc_changedPrivs`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`proc_changedPrivs`() BEGIN SELECT s.* FROM proc_privs s diff --git a/db/routines/util/procedures/proc_restorePrivs.sql b/db/routines/util/procedures/proc_restorePrivs.sql index 8e7c287c2..0d502a6db 100644 --- a/db/routines/util/procedures/proc_restorePrivs.sql +++ b/db/routines/util/procedures/proc_restorePrivs.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`proc_restorePrivs`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`proc_restorePrivs`() BEGIN /** * Restores the privileges saved by proc_savePrivs(). diff --git a/db/routines/util/procedures/proc_savePrivs.sql b/db/routines/util/procedures/proc_savePrivs.sql index 25545ca69..75c289f7b 100644 --- a/db/routines/util/procedures/proc_savePrivs.sql +++ b/db/routines/util/procedures/proc_savePrivs.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`proc_savePrivs`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`proc_savePrivs`() BEGIN /** * Saves routine privileges, used to simplify the task of keeping diff --git a/db/routines/util/procedures/slowLog_prune.sql b/db/routines/util/procedures/slowLog_prune.sql index 59327c1c2..d676ae3d9 100644 --- a/db/routines/util/procedures/slowLog_prune.sql +++ b/db/routines/util/procedures/slowLog_prune.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`slowLog_prune`() +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`slowLog_prune`() BEGIN /** * Prunes MySQL slow query log table deleting all records older than one week. diff --git a/db/routines/util/procedures/throw.sql b/db/routines/util/procedures/throw.sql index b391d3880..260915e0d 100644 --- a/db/routines/util/procedures/throw.sql +++ b/db/routines/util/procedures/throw.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`throw`(vMessage CHAR(55)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`throw`(vMessage CHAR(55)) BEGIN /** * Throws a user-defined exception. diff --git a/db/routines/util/procedures/time_generate.sql b/db/routines/util/procedures/time_generate.sql index cc93cd372..14cc1edc5 100644 --- a/db/routines/util/procedures/time_generate.sql +++ b/db/routines/util/procedures/time_generate.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`time_generate`(vStarted DATE, vEnded DATE) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`time_generate`(vStarted DATE, vEnded DATE) BEGIN /** * Generate a temporary table between the days passed as parameters diff --git a/db/routines/util/procedures/tx_commit.sql b/db/routines/util/procedures/tx_commit.sql index 1f708c533..35f96df8d 100644 --- a/db/routines/util/procedures/tx_commit.sql +++ b/db/routines/util/procedures/tx_commit.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`tx_commit`(vIsTx BOOL) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_commit`(vIsTx BOOL) BEGIN /** * Confirma los cambios asociados a una transacción. diff --git a/db/routines/util/procedures/tx_rollback.sql b/db/routines/util/procedures/tx_rollback.sql index 38ee77613..4b00f9ec1 100644 --- a/db/routines/util/procedures/tx_rollback.sql +++ b/db/routines/util/procedures/tx_rollback.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`tx_rollback`(vIsTx BOOL) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_rollback`(vIsTx BOOL) BEGIN /** * Deshace los cambios asociados a una transacción. diff --git a/db/routines/util/procedures/tx_start.sql b/db/routines/util/procedures/tx_start.sql index ac1a443d3..41f8c94ee 100644 --- a/db/routines/util/procedures/tx_start.sql +++ b/db/routines/util/procedures/tx_start.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`tx_start`(vIsTx BOOL) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_start`(vIsTx BOOL) BEGIN /** * Inicia una transacción. diff --git a/db/routines/util/procedures/warn.sql b/db/routines/util/procedures/warn.sql index 92e40a83d..e1dd33c9c 100644 --- a/db/routines/util/procedures/warn.sql +++ b/db/routines/util/procedures/warn.sql @@ -1,5 +1,5 @@ DELIMITER $$ -CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `util`.`warn`(vCode CHAR(35)) +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`warn`(vCode CHAR(35)) BEGIN DECLARE w VARCHAR(1) DEFAULT '__'; SET @warn = vCode; diff --git a/db/routines/util/views/eventLogGrouped.sql b/db/routines/util/views/eventLogGrouped.sql index 8f3c9f264..8615458b5 100644 --- a/db/routines/util/views/eventLogGrouped.sql +++ b/db/routines/util/views/eventLogGrouped.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `util`.`eventLogGrouped` AS SELECT max(`t`.`date`) AS `lastHappened`, diff --git a/db/routines/vn2008/views/Agencias.sql b/db/routines/vn2008/views/Agencias.sql index ca77395b3..d70ec73f4 100644 --- a/db/routines/vn2008/views/Agencias.sql +++ b/db/routines/vn2008/views/Agencias.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Agencias` AS SELECT `am`.`id` AS `Id_Agencia`, diff --git a/db/routines/vn2008/views/Articles.sql b/db/routines/vn2008/views/Articles.sql index f8a1e8d43..385bf310b 100644 --- a/db/routines/vn2008/views/Articles.sql +++ b/db/routines/vn2008/views/Articles.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Articles` AS SELECT `i`.`id` AS `Id_Article`, diff --git a/db/routines/vn2008/views/Bancos.sql b/db/routines/vn2008/views/Bancos.sql index 7f8d289f9..6e850f365 100644 --- a/db/routines/vn2008/views/Bancos.sql +++ b/db/routines/vn2008/views/Bancos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Bancos` AS SELECT `a`.`id` AS `Id_Banco`, diff --git a/db/routines/vn2008/views/Bancos_poliza.sql b/db/routines/vn2008/views/Bancos_poliza.sql index 915f6a64d..4cd443545 100644 --- a/db/routines/vn2008/views/Bancos_poliza.sql +++ b/db/routines/vn2008/views/Bancos_poliza.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Bancos_poliza` AS SELECT `bp`.`id` AS `poliza_id`, diff --git a/db/routines/vn2008/views/Cajas.sql b/db/routines/vn2008/views/Cajas.sql index 59b96a1cc..54b9ee189 100644 --- a/db/routines/vn2008/views/Cajas.sql +++ b/db/routines/vn2008/views/Cajas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Cajas` AS SELECT `t`.`id` AS `Id_Caja`, diff --git a/db/routines/vn2008/views/Clientes.sql b/db/routines/vn2008/views/Clientes.sql index 710df071a..153d875bc 100644 --- a/db/routines/vn2008/views/Clientes.sql +++ b/db/routines/vn2008/views/Clientes.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Clientes` AS SELECT `c`.`id` AS `id_cliente`, diff --git a/db/routines/vn2008/views/Comparativa.sql b/db/routines/vn2008/views/Comparativa.sql index 92e8adf1f..875a5c370 100644 --- a/db/routines/vn2008/views/Comparativa.sql +++ b/db/routines/vn2008/views/Comparativa.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Comparativa` AS SELECT `c`.`timePeriod` AS `Periodo`, diff --git a/db/routines/vn2008/views/Compres.sql b/db/routines/vn2008/views/Compres.sql index 786aef3cb..b99dd2b73 100644 --- a/db/routines/vn2008/views/Compres.sql +++ b/db/routines/vn2008/views/Compres.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Compres` AS SELECT `c`.`id` AS `Id_Compra`, diff --git a/db/routines/vn2008/views/Compres_mark.sql b/db/routines/vn2008/views/Compres_mark.sql index aac73aa20..7138c4e4c 100644 --- a/db/routines/vn2008/views/Compres_mark.sql +++ b/db/routines/vn2008/views/Compres_mark.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Compres_mark` AS SELECT `bm`.`id` AS `Id_Compra`, diff --git a/db/routines/vn2008/views/Consignatarios.sql b/db/routines/vn2008/views/Consignatarios.sql index df7d07fb3..13a426f4d 100644 --- a/db/routines/vn2008/views/Consignatarios.sql +++ b/db/routines/vn2008/views/Consignatarios.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Consignatarios` AS SELECT `a`.`id` AS `id_consigna`, diff --git a/db/routines/vn2008/views/Cubos.sql b/db/routines/vn2008/views/Cubos.sql index ce28d414a..4ece9c435 100644 --- a/db/routines/vn2008/views/Cubos.sql +++ b/db/routines/vn2008/views/Cubos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Cubos` AS SELECT `p`.`id` AS `Id_Cubo`, diff --git a/db/routines/vn2008/views/Cubos_Retorno.sql b/db/routines/vn2008/views/Cubos_Retorno.sql index 152d72c99..bc56f275b 100644 --- a/db/routines/vn2008/views/Cubos_Retorno.sql +++ b/db/routines/vn2008/views/Cubos_Retorno.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Cubos_Retorno` AS SELECT `rb`.`id` AS `idCubos_Retorno`, diff --git a/db/routines/vn2008/views/Entradas.sql b/db/routines/vn2008/views/Entradas.sql index bca2a759f..63fbaa728 100644 --- a/db/routines/vn2008/views/Entradas.sql +++ b/db/routines/vn2008/views/Entradas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Entradas` AS SELECT `e`.`id` AS `Id_Entrada`, diff --git a/db/routines/vn2008/views/Entradas_Auto.sql b/db/routines/vn2008/views/Entradas_Auto.sql index 64f6f8ae6..5d1266965 100644 --- a/db/routines/vn2008/views/Entradas_Auto.sql +++ b/db/routines/vn2008/views/Entradas_Auto.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Entradas_Auto` AS SELECT `ev`.`entryFk` AS `Id_Entrada` diff --git a/db/routines/vn2008/views/Entradas_orden.sql b/db/routines/vn2008/views/Entradas_orden.sql index ddc294848..66f46a929 100644 --- a/db/routines/vn2008/views/Entradas_orden.sql +++ b/db/routines/vn2008/views/Entradas_orden.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Entradas_orden` AS SELECT `eo`.`entryFk` AS `Id_Entrada`, diff --git a/db/routines/vn2008/views/Impresoras.sql b/db/routines/vn2008/views/Impresoras.sql index 76118af1e..c4782ab72 100644 --- a/db/routines/vn2008/views/Impresoras.sql +++ b/db/routines/vn2008/views/Impresoras.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Impresoras` AS SELECT `vn`.`printer`.`id` AS `Id_impresora`, diff --git a/db/routines/vn2008/views/Monedas.sql b/db/routines/vn2008/views/Monedas.sql index 88a2cf495..3693885be 100644 --- a/db/routines/vn2008/views/Monedas.sql +++ b/db/routines/vn2008/views/Monedas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Monedas` AS SELECT `c`.`id` AS `Id_Moneda`, diff --git a/db/routines/vn2008/views/Movimientos.sql b/db/routines/vn2008/views/Movimientos.sql index 458ae4d48..da41c51bb 100644 --- a/db/routines/vn2008/views/Movimientos.sql +++ b/db/routines/vn2008/views/Movimientos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Movimientos` AS SELECT `m`.`id` AS `Id_Movimiento`, diff --git a/db/routines/vn2008/views/Movimientos_componentes.sql b/db/routines/vn2008/views/Movimientos_componentes.sql index a88e5f7d1..440fbfb6a 100644 --- a/db/routines/vn2008/views/Movimientos_componentes.sql +++ b/db/routines/vn2008/views/Movimientos_componentes.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Movimientos_componentes` AS SELECT `sc`.`saleFk` AS `Id_Movimiento`, diff --git a/db/routines/vn2008/views/Movimientos_mark.sql b/db/routines/vn2008/views/Movimientos_mark.sql index cc42e565e..10ef2fc08 100644 --- a/db/routines/vn2008/views/Movimientos_mark.sql +++ b/db/routines/vn2008/views/Movimientos_mark.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Movimientos_mark` AS SELECT `mm`.`saleFk` AS `Id_Movimiento`, diff --git a/db/routines/vn2008/views/Ordenes.sql b/db/routines/vn2008/views/Ordenes.sql index a8266ab98..de31f8f99 100644 --- a/db/routines/vn2008/views/Ordenes.sql +++ b/db/routines/vn2008/views/Ordenes.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Ordenes` AS SELECT `tr`.`id` AS `Id_ORDEN`, diff --git a/db/routines/vn2008/views/Origen.sql b/db/routines/vn2008/views/Origen.sql index 58658a1af..5bb1d9b7f 100644 --- a/db/routines/vn2008/views/Origen.sql +++ b/db/routines/vn2008/views/Origen.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Origen` AS SELECT `o`.`id` AS `id`, diff --git a/db/routines/vn2008/views/Paises.sql b/db/routines/vn2008/views/Paises.sql index 72636de44..99d2835f0 100644 --- a/db/routines/vn2008/views/Paises.sql +++ b/db/routines/vn2008/views/Paises.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Paises` AS SELECT `c`.`id` AS `Id`, diff --git a/db/routines/vn2008/views/PreciosEspeciales.sql b/db/routines/vn2008/views/PreciosEspeciales.sql index a17503533..cea9f87fd 100644 --- a/db/routines/vn2008/views/PreciosEspeciales.sql +++ b/db/routines/vn2008/views/PreciosEspeciales.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`PreciosEspeciales` AS SELECT `sp`.`id` AS `Id_PrecioEspecial`, diff --git a/db/routines/vn2008/views/Proveedores.sql b/db/routines/vn2008/views/Proveedores.sql index 293732d23..203d4295f 100644 --- a/db/routines/vn2008/views/Proveedores.sql +++ b/db/routines/vn2008/views/Proveedores.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Proveedores` AS SELECT `s`.`id` AS `Id_Proveedor`, diff --git a/db/routines/vn2008/views/Proveedores_cargueras.sql b/db/routines/vn2008/views/Proveedores_cargueras.sql index 4ff9bd627..c1dc6ad23 100644 --- a/db/routines/vn2008/views/Proveedores_cargueras.sql +++ b/db/routines/vn2008/views/Proveedores_cargueras.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Proveedores_cargueras` AS SELECT `fs`.`supplierFk` AS `Id_Proveedor` diff --git a/db/routines/vn2008/views/Proveedores_gestdoc.sql b/db/routines/vn2008/views/Proveedores_gestdoc.sql index 1a27f7a7d..c25623b8b 100644 --- a/db/routines/vn2008/views/Proveedores_gestdoc.sql +++ b/db/routines/vn2008/views/Proveedores_gestdoc.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Proveedores_gestdoc` AS SELECT `sd`.`supplierFk` AS `Id_Proveedor`, diff --git a/db/routines/vn2008/views/Recibos.sql b/db/routines/vn2008/views/Recibos.sql index 8b710cb23..93ec7bc6f 100644 --- a/db/routines/vn2008/views/Recibos.sql +++ b/db/routines/vn2008/views/Recibos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Recibos` AS SELECT `r`.`Id` AS `Id`, diff --git a/db/routines/vn2008/views/Remesas.sql b/db/routines/vn2008/views/Remesas.sql index 2986ec6f2..9e8c18ada 100644 --- a/db/routines/vn2008/views/Remesas.sql +++ b/db/routines/vn2008/views/Remesas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Remesas` AS SELECT `r`.`id` AS `Id_Remesa`, diff --git a/db/routines/vn2008/views/Rutas.sql b/db/routines/vn2008/views/Rutas.sql index 959ef887e..78b3bb471 100644 --- a/db/routines/vn2008/views/Rutas.sql +++ b/db/routines/vn2008/views/Rutas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Rutas` AS SELECT `r`.`id` AS `Id_Ruta`, diff --git a/db/routines/vn2008/views/Split.sql b/db/routines/vn2008/views/Split.sql index 812cec8fe..eec90a5f8 100644 --- a/db/routines/vn2008/views/Split.sql +++ b/db/routines/vn2008/views/Split.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Splits` AS SELECT `s`.`id` AS `Id_Split`, diff --git a/db/routines/vn2008/views/Split_lines.sql b/db/routines/vn2008/views/Split_lines.sql index afde3977f..0b7897be7 100644 --- a/db/routines/vn2008/views/Split_lines.sql +++ b/db/routines/vn2008/views/Split_lines.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Split_lines` AS SELECT `sl`.`id` AS `Id_Split_lines`, diff --git a/db/routines/vn2008/views/Tickets.sql b/db/routines/vn2008/views/Tickets.sql index 18646dbab..59dcb9100 100644 --- a/db/routines/vn2008/views/Tickets.sql +++ b/db/routines/vn2008/views/Tickets.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Tickets` AS SELECT `t`.`id` AS `Id_Ticket`, diff --git a/db/routines/vn2008/views/Tickets_state.sql b/db/routines/vn2008/views/Tickets_state.sql index fbbc00170..be59a750f 100644 --- a/db/routines/vn2008/views/Tickets_state.sql +++ b/db/routines/vn2008/views/Tickets_state.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Tickets_state` AS SELECT `t`.`ticketFk` AS `Id_Ticket`, diff --git a/db/routines/vn2008/views/Tickets_turno.sql b/db/routines/vn2008/views/Tickets_turno.sql index 6d16a5780..28bc2d55f 100644 --- a/db/routines/vn2008/views/Tickets_turno.sql +++ b/db/routines/vn2008/views/Tickets_turno.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Tickets_turno` AS SELECT `tw`.`ticketFk` AS `Id_Ticket`, diff --git a/db/routines/vn2008/views/Tintas.sql b/db/routines/vn2008/views/Tintas.sql index 729cfa9d6..2299aa759 100644 --- a/db/routines/vn2008/views/Tintas.sql +++ b/db/routines/vn2008/views/Tintas.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Tintas` AS SELECT `i`.`id` AS `Id_Tinta`, diff --git a/db/routines/vn2008/views/Tipos.sql b/db/routines/vn2008/views/Tipos.sql index 5a99e2aca..5b96c1766 100644 --- a/db/routines/vn2008/views/Tipos.sql +++ b/db/routines/vn2008/views/Tipos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Tipos` AS SELECT `it`.`id` AS `tipo_id`, diff --git a/db/routines/vn2008/views/Trabajadores.sql b/db/routines/vn2008/views/Trabajadores.sql index a5c8353d2..72b53e54e 100644 --- a/db/routines/vn2008/views/Trabajadores.sql +++ b/db/routines/vn2008/views/Trabajadores.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Trabajadores` AS SELECT `w`.`id` AS `Id_Trabajador`, diff --git a/db/routines/vn2008/views/Tramos.sql b/db/routines/vn2008/views/Tramos.sql index a9847a1b1..6919a610b 100644 --- a/db/routines/vn2008/views/Tramos.sql +++ b/db/routines/vn2008/views/Tramos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Tramos` AS SELECT `s`.`id` AS `id`, diff --git a/db/routines/vn2008/views/V_edi_item_track.sql b/db/routines/vn2008/views/V_edi_item_track.sql index 8e0182719..64cfdc1c5 100644 --- a/db/routines/vn2008/views/V_edi_item_track.sql +++ b/db/routines/vn2008/views/V_edi_item_track.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`V_edi_item_track` AS SELECT `edi`.`item_track`.`item_id` AS `item_id`, diff --git a/db/routines/vn2008/views/Vehiculos_consumo.sql b/db/routines/vn2008/views/Vehiculos_consumo.sql index 2808371c7..422a77499 100644 --- a/db/routines/vn2008/views/Vehiculos_consumo.sql +++ b/db/routines/vn2008/views/Vehiculos_consumo.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Vehiculos_consumo` AS SELECT `vc`.`id` AS `Vehiculos_consumo_id`, diff --git a/db/routines/vn2008/views/account_conciliacion.sql b/db/routines/vn2008/views/account_conciliacion.sql index e652648f5..66db78eee 100644 --- a/db/routines/vn2008/views/account_conciliacion.sql +++ b/db/routines/vn2008/views/account_conciliacion.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`account_conciliacion` AS SELECT `ar`.`id` AS `idaccount_conciliacion`, diff --git a/db/routines/vn2008/views/account_detail.sql b/db/routines/vn2008/views/account_detail.sql index 874f1f90c..74d35ae41 100644 --- a/db/routines/vn2008/views/account_detail.sql +++ b/db/routines/vn2008/views/account_detail.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`account_detail` AS SELECT `ac`.`id` AS `account_detail_id`, diff --git a/db/routines/vn2008/views/account_detail_type.sql b/db/routines/vn2008/views/account_detail_type.sql index 5f6f22cd9..6def86a9a 100644 --- a/db/routines/vn2008/views/account_detail_type.sql +++ b/db/routines/vn2008/views/account_detail_type.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`account_detail_type` AS SELECT `adt`.`id` AS `account_detail_type_id`, diff --git a/db/routines/vn2008/views/agency.sql b/db/routines/vn2008/views/agency.sql index 015149e60..637bb0910 100644 --- a/db/routines/vn2008/views/agency.sql +++ b/db/routines/vn2008/views/agency.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`agency` AS SELECT `a`.`id` AS `agency_id`, diff --git a/db/routines/vn2008/views/airline.sql b/db/routines/vn2008/views/airline.sql index 364e61ab1..786206b1c 100644 --- a/db/routines/vn2008/views/airline.sql +++ b/db/routines/vn2008/views/airline.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`airline` AS SELECT `a`.`id` AS `airline_id`, diff --git a/db/routines/vn2008/views/airport.sql b/db/routines/vn2008/views/airport.sql index 3e4238e51..0e8ab39d2 100644 --- a/db/routines/vn2008/views/airport.sql +++ b/db/routines/vn2008/views/airport.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`airport` AS SELECT `a`.`id` AS `airport_id`, diff --git a/db/routines/vn2008/views/albaran.sql b/db/routines/vn2008/views/albaran.sql index 1851834cd..b1055ff56 100644 --- a/db/routines/vn2008/views/albaran.sql +++ b/db/routines/vn2008/views/albaran.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`albaran` AS SELECT `dn`.`id` AS `albaran_id`, diff --git a/db/routines/vn2008/views/albaran_gestdoc.sql b/db/routines/vn2008/views/albaran_gestdoc.sql index d4d0ecbce..ffde86937 100644 --- a/db/routines/vn2008/views/albaran_gestdoc.sql +++ b/db/routines/vn2008/views/albaran_gestdoc.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`albaran_gestdoc` AS SELECT `dnd`.`dmsFk` AS `gestdoc_id`, diff --git a/db/routines/vn2008/views/albaran_state.sql b/db/routines/vn2008/views/albaran_state.sql index 03056d7f0..a15938f45 100644 --- a/db/routines/vn2008/views/albaran_state.sql +++ b/db/routines/vn2008/views/albaran_state.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`albaran_state` AS SELECT `dn`.`id` AS `albaran_state_id`, diff --git a/db/routines/vn2008/views/awb.sql b/db/routines/vn2008/views/awb.sql index d37ca2167..010596288 100644 --- a/db/routines/vn2008/views/awb.sql +++ b/db/routines/vn2008/views/awb.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb` AS SELECT `a`.`id` AS `id`, diff --git a/db/routines/vn2008/views/awb_component.sql b/db/routines/vn2008/views/awb_component.sql index 39eec2733..8053c4a59 100644 --- a/db/routines/vn2008/views/awb_component.sql +++ b/db/routines/vn2008/views/awb_component.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb_component` AS SELECT `ac`.`id` AS `id`, diff --git a/db/routines/vn2008/views/awb_component_template.sql b/db/routines/vn2008/views/awb_component_template.sql index cdf178fe1..bc8fd1cd8 100644 --- a/db/routines/vn2008/views/awb_component_template.sql +++ b/db/routines/vn2008/views/awb_component_template.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb_component_template` AS SELECT`act`.`id` AS `awb_component_template_id`, diff --git a/db/routines/vn2008/views/awb_component_type.sql b/db/routines/vn2008/views/awb_component_type.sql index f65df513f..45921e11c 100644 --- a/db/routines/vn2008/views/awb_component_type.sql +++ b/db/routines/vn2008/views/awb_component_type.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb_component_type` AS SELECT `act`.`id` AS `awb_component_type_id`, diff --git a/db/routines/vn2008/views/awb_gestdoc.sql b/db/routines/vn2008/views/awb_gestdoc.sql index 16715ce6b..6b5c58d56 100644 --- a/db/routines/vn2008/views/awb_gestdoc.sql +++ b/db/routines/vn2008/views/awb_gestdoc.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb_gestdoc` AS SELECT `ad`.`id` AS `awb_gestdoc_id`, diff --git a/db/routines/vn2008/views/awb_recibida.sql b/db/routines/vn2008/views/awb_recibida.sql index 9f04e0e35..c7586214d 100644 --- a/db/routines/vn2008/views/awb_recibida.sql +++ b/db/routines/vn2008/views/awb_recibida.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb_recibida` AS SELECT `aii`.`awbFk` AS `awb_id`, diff --git a/db/routines/vn2008/views/awb_role.sql b/db/routines/vn2008/views/awb_role.sql index 3905ee572..5ef004244 100644 --- a/db/routines/vn2008/views/awb_role.sql +++ b/db/routines/vn2008/views/awb_role.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb_role` AS SELECT `ar`.`id` AS `awb_role_id`, diff --git a/db/routines/vn2008/views/awb_unit.sql b/db/routines/vn2008/views/awb_unit.sql index 28ad75204..7d1193105 100644 --- a/db/routines/vn2008/views/awb_unit.sql +++ b/db/routines/vn2008/views/awb_unit.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`awb_unit` AS SELECT `au`.`id` AS `awb_unit_id`, diff --git a/db/routines/vn2008/views/balance_nest_tree.sql b/db/routines/vn2008/views/balance_nest_tree.sql index e232edba8..66d048d7f 100644 --- a/db/routines/vn2008/views/balance_nest_tree.sql +++ b/db/routines/vn2008/views/balance_nest_tree.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`balance_nest_tree` AS SELECT `bnt`.`lft` AS `lft`, diff --git a/db/routines/vn2008/views/barcodes.sql b/db/routines/vn2008/views/barcodes.sql index 8cf8be064..f366e15fa 100644 --- a/db/routines/vn2008/views/barcodes.sql +++ b/db/routines/vn2008/views/barcodes.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`barcodes` AS SELECT `b`.`id` AS `id`, diff --git a/db/routines/vn2008/views/buySource.sql b/db/routines/vn2008/views/buySource.sql index d6db662a7..850483833 100644 --- a/db/routines/vn2008/views/buySource.sql +++ b/db/routines/vn2008/views/buySource.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`buySource` AS SELECT `b`.`entryFk` AS `Id_Entrada`, diff --git a/db/routines/vn2008/views/buy_edi.sql b/db/routines/vn2008/views/buy_edi.sql index 85e4a6b28..d00196e95 100644 --- a/db/routines/vn2008/views/buy_edi.sql +++ b/db/routines/vn2008/views/buy_edi.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`buy_edi` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/vn2008/views/buy_edi_k012.sql b/db/routines/vn2008/views/buy_edi_k012.sql index 790e33079..8ef89e5c9 100644 --- a/db/routines/vn2008/views/buy_edi_k012.sql +++ b/db/routines/vn2008/views/buy_edi_k012.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`buy_edi_k012` AS SELECT `eek`.`id` AS `buy_edi_k012_id`, diff --git a/db/routines/vn2008/views/buy_edi_k03.sql b/db/routines/vn2008/views/buy_edi_k03.sql index aef0fb391..04ca10ef5 100644 --- a/db/routines/vn2008/views/buy_edi_k03.sql +++ b/db/routines/vn2008/views/buy_edi_k03.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`buy_edi_k03` AS SELECT `eek`.`id` AS `buy_edi_k03_id`, diff --git a/db/routines/vn2008/views/buy_edi_k04.sql b/db/routines/vn2008/views/buy_edi_k04.sql index e207e4317..3c32e3b88 100644 --- a/db/routines/vn2008/views/buy_edi_k04.sql +++ b/db/routines/vn2008/views/buy_edi_k04.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`buy_edi_k04` AS SELECT `eek`.`id` AS `buy_edi_k04_id`, diff --git a/db/routines/vn2008/views/cdr.sql b/db/routines/vn2008/views/cdr.sql index d13c7dd32..9d0d2f172 100644 --- a/db/routines/vn2008/views/cdr.sql +++ b/db/routines/vn2008/views/cdr.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cdr` AS SELECT `c`.`call_date` AS `calldate`, diff --git a/db/routines/vn2008/views/chanel.sql b/db/routines/vn2008/views/chanel.sql index 0480ca588..9d2ed0d9c 100644 --- a/db/routines/vn2008/views/chanel.sql +++ b/db/routines/vn2008/views/chanel.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`chanel` AS SELECT `c`.`id` AS `chanel_id`, diff --git a/db/routines/vn2008/views/cl_act.sql b/db/routines/vn2008/views/cl_act.sql index 9678d2fbb..a62ac3efe 100644 --- a/db/routines/vn2008/views/cl_act.sql +++ b/db/routines/vn2008/views/cl_act.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_act` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/cl_cau.sql b/db/routines/vn2008/views/cl_cau.sql index 8bb352710..a835a94c9 100644 --- a/db/routines/vn2008/views/cl_cau.sql +++ b/db/routines/vn2008/views/cl_cau.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_cau` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/cl_con.sql b/db/routines/vn2008/views/cl_con.sql index c224a01aa..b4f596d56 100644 --- a/db/routines/vn2008/views/cl_con.sql +++ b/db/routines/vn2008/views/cl_con.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_con` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/cl_det.sql b/db/routines/vn2008/views/cl_det.sql index 80c87c51e..cef5c821d 100644 --- a/db/routines/vn2008/views/cl_det.sql +++ b/db/routines/vn2008/views/cl_det.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_det` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/cl_main.sql b/db/routines/vn2008/views/cl_main.sql index 04d0e10cd..ef0c2cb8a 100644 --- a/db/routines/vn2008/views/cl_main.sql +++ b/db/routines/vn2008/views/cl_main.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_main` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/cl_mot.sql b/db/routines/vn2008/views/cl_mot.sql index 6dfdb702a..60fb27041 100644 --- a/db/routines/vn2008/views/cl_mot.sql +++ b/db/routines/vn2008/views/cl_mot.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_mot` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/cl_res.sql b/db/routines/vn2008/views/cl_res.sql index 31c1da6c1..e82ee73b0 100644 --- a/db/routines/vn2008/views/cl_res.sql +++ b/db/routines/vn2008/views/cl_res.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_res` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/cl_sol.sql b/db/routines/vn2008/views/cl_sol.sql index 3321ce0e4..23f2b8594 100644 --- a/db/routines/vn2008/views/cl_sol.sql +++ b/db/routines/vn2008/views/cl_sol.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`cl_sol` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/config_host.sql b/db/routines/vn2008/views/config_host.sql index b9dbaae35..2d4d6fa4c 100644 --- a/db/routines/vn2008/views/config_host.sql +++ b/db/routines/vn2008/views/config_host.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`config_host` AS SELECT `vn`.`host`.`code` AS `config_host_id`, diff --git a/db/routines/vn2008/views/consignatarios_observation.sql b/db/routines/vn2008/views/consignatarios_observation.sql index 13bbe431a..1f4c2eeb2 100644 --- a/db/routines/vn2008/views/consignatarios_observation.sql +++ b/db/routines/vn2008/views/consignatarios_observation.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`consignatarios_observation` AS SELECT `co`.`id` AS `consignatarios_observation_id`, diff --git a/db/routines/vn2008/views/credit.sql b/db/routines/vn2008/views/credit.sql index e1f71e267..0de60b967 100644 --- a/db/routines/vn2008/views/credit.sql +++ b/db/routines/vn2008/views/credit.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`credit` AS SELECT diff --git a/db/routines/vn2008/views/definitivo.sql b/db/routines/vn2008/views/definitivo.sql index 397b33dbd..1bc554161 100644 --- a/db/routines/vn2008/views/definitivo.sql +++ b/db/routines/vn2008/views/definitivo.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`definitivo` AS SELECT `d`.`id` AS `definitivo_id`, diff --git a/db/routines/vn2008/views/edi_article.sql b/db/routines/vn2008/views/edi_article.sql index 68c7a581a..34bb64149 100644 --- a/db/routines/vn2008/views/edi_article.sql +++ b/db/routines/vn2008/views/edi_article.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`edi_article` AS SELECT `edi`.`item`.`id` AS `id`, diff --git a/db/routines/vn2008/views/edi_bucket.sql b/db/routines/vn2008/views/edi_bucket.sql index 0d744e6a7..1af487a6c 100644 --- a/db/routines/vn2008/views/edi_bucket.sql +++ b/db/routines/vn2008/views/edi_bucket.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`edi_bucket` AS SELECT cast( diff --git a/db/routines/vn2008/views/edi_bucket_type.sql b/db/routines/vn2008/views/edi_bucket_type.sql index 845124d49..8e3af2080 100644 --- a/db/routines/vn2008/views/edi_bucket_type.sql +++ b/db/routines/vn2008/views/edi_bucket_type.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`edi_bucket_type` AS SELECT `edi`.`bucket_type`.`bucket_type_id` AS `bucket_type_id`, diff --git a/db/routines/vn2008/views/edi_specie.sql b/db/routines/vn2008/views/edi_specie.sql index c25a5601c..33e38482e 100644 --- a/db/routines/vn2008/views/edi_specie.sql +++ b/db/routines/vn2008/views/edi_specie.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`edi_specie` AS SELECT `edi`.`specie`.`specie_id` AS `specie_id`, diff --git a/db/routines/vn2008/views/edi_supplier.sql b/db/routines/vn2008/views/edi_supplier.sql index d7dd6c353..51f96b83d 100644 --- a/db/routines/vn2008/views/edi_supplier.sql +++ b/db/routines/vn2008/views/edi_supplier.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`edi_supplier` AS SELECT `edi`.`supplier`.`supplier_id` AS `supplier_id`, diff --git a/db/routines/vn2008/views/empresa.sql b/db/routines/vn2008/views/empresa.sql index 6c93cb910..8c80a06e8 100644 --- a/db/routines/vn2008/views/empresa.sql +++ b/db/routines/vn2008/views/empresa.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`empresa` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/empresa_grupo.sql b/db/routines/vn2008/views/empresa_grupo.sql index a626f2c60..35ba27279 100644 --- a/db/routines/vn2008/views/empresa_grupo.sql +++ b/db/routines/vn2008/views/empresa_grupo.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`empresa_grupo` AS SELECT `vn`.`companyGroup`.`id` AS `empresa_grupo_id`, diff --git a/db/routines/vn2008/views/entrySource.sql b/db/routines/vn2008/views/entrySource.sql index f816a263d..3a8df41bf 100644 --- a/db/routines/vn2008/views/entrySource.sql +++ b/db/routines/vn2008/views/entrySource.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`entrySource` AS SELECT `e`.`gestDocFk` AS `gestdoc_id`, diff --git a/db/routines/vn2008/views/financialProductType.sql b/db/routines/vn2008/views/financialProductType.sql index 10a8ece21..89a063856 100644 --- a/db/routines/vn2008/views/financialProductType.sql +++ b/db/routines/vn2008/views/financialProductType.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`financialProductType`AS SELECT * FROM vn.financialProductType; \ No newline at end of file diff --git a/db/routines/vn2008/views/flight.sql b/db/routines/vn2008/views/flight.sql index 194cb5a94..2df5362f7 100644 --- a/db/routines/vn2008/views/flight.sql +++ b/db/routines/vn2008/views/flight.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`flight` AS SELECT diff --git a/db/routines/vn2008/views/gastos_resumen.sql b/db/routines/vn2008/views/gastos_resumen.sql index 8db91c1b6..d40d6d229 100644 --- a/db/routines/vn2008/views/gastos_resumen.sql +++ b/db/routines/vn2008/views/gastos_resumen.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`gastos_resumen` AS SELECT diff --git a/db/routines/vn2008/views/integra2.sql b/db/routines/vn2008/views/integra2.sql index cb0847e8a..05840d6bb 100644 --- a/db/routines/vn2008/views/integra2.sql +++ b/db/routines/vn2008/views/integra2.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`integra2` AS SELECT diff --git a/db/routines/vn2008/views/integra2_province.sql b/db/routines/vn2008/views/integra2_province.sql index f0a5e13ee..bc099adb3 100644 --- a/db/routines/vn2008/views/integra2_province.sql +++ b/db/routines/vn2008/views/integra2_province.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`integra2_province` AS SELECT diff --git a/db/routines/vn2008/views/mail.sql b/db/routines/vn2008/views/mail.sql index c0d4de602..3074dfa95 100644 --- a/db/routines/vn2008/views/mail.sql +++ b/db/routines/vn2008/views/mail.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`mail` AS SELECT `m`.`id` AS `id`, diff --git a/db/routines/vn2008/views/mandato.sql b/db/routines/vn2008/views/mandato.sql index a2dbc4be6..dde43b48d 100644 --- a/db/routines/vn2008/views/mandato.sql +++ b/db/routines/vn2008/views/mandato.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`mandato` AS SELECT `m`.`id` AS `id`, diff --git a/db/routines/vn2008/views/mandato_tipo.sql b/db/routines/vn2008/views/mandato_tipo.sql index 72f306ace..a1b5b0a9f 100644 --- a/db/routines/vn2008/views/mandato_tipo.sql +++ b/db/routines/vn2008/views/mandato_tipo.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`mandato_tipo` AS SELECT `m`.`id` AS `idmandato_tipo`, diff --git a/db/routines/vn2008/views/pago.sql b/db/routines/vn2008/views/pago.sql index 08506afda..546496070 100644 --- a/db/routines/vn2008/views/pago.sql +++ b/db/routines/vn2008/views/pago.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`pago` AS SELECT `p`.`id` AS `id`, diff --git a/db/routines/vn2008/views/pago_sdc.sql b/db/routines/vn2008/views/pago_sdc.sql index ef75741fb..29480e376 100644 --- a/db/routines/vn2008/views/pago_sdc.sql +++ b/db/routines/vn2008/views/pago_sdc.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`pago_sdc` AS SELECT `ei`.`id` AS `pago_sdc_id`, diff --git a/db/routines/vn2008/views/pay_dem.sql b/db/routines/vn2008/views/pay_dem.sql index 55468d6e3..1ef00d645 100644 --- a/db/routines/vn2008/views/pay_dem.sql +++ b/db/routines/vn2008/views/pay_dem.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`pay_dem` AS SELECT `pd`.`id` AS `id`, diff --git a/db/routines/vn2008/views/pay_dem_det.sql b/db/routines/vn2008/views/pay_dem_det.sql index b9b4485d9..822897ed8 100644 --- a/db/routines/vn2008/views/pay_dem_det.sql +++ b/db/routines/vn2008/views/pay_dem_det.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`pay_dem_det` AS SELECT `pdd`.`id` AS `id`, diff --git a/db/routines/vn2008/views/pay_met.sql b/db/routines/vn2008/views/pay_met.sql index c64d01ce4..63e2b30e0 100644 --- a/db/routines/vn2008/views/pay_met.sql +++ b/db/routines/vn2008/views/pay_met.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`pay_met` AS SELECT `pm`.`id` AS `id`, diff --git a/db/routines/vn2008/views/payrollWorker.sql b/db/routines/vn2008/views/payrollWorker.sql index 7557d61ec..6199e98b8 100644 --- a/db/routines/vn2008/views/payrollWorker.sql +++ b/db/routines/vn2008/views/payrollWorker.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`payroll_employee` AS SELECT diff --git a/db/routines/vn2008/views/payroll_categorias.sql b/db/routines/vn2008/views/payroll_categorias.sql index b1eb5f596..b71e69019 100644 --- a/db/routines/vn2008/views/payroll_categorias.sql +++ b/db/routines/vn2008/views/payroll_categorias.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`payroll_categorias` AS SELECT `pc`.`id` AS `codcategoria`, diff --git a/db/routines/vn2008/views/payroll_centros.sql b/db/routines/vn2008/views/payroll_centros.sql index 216023467..b7e162f90 100644 --- a/db/routines/vn2008/views/payroll_centros.sql +++ b/db/routines/vn2008/views/payroll_centros.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`payroll_centros` AS SELECT `pwc`.`workCenterFkA3` AS `cod_centro`, diff --git a/db/routines/vn2008/views/payroll_conceptos.sql b/db/routines/vn2008/views/payroll_conceptos.sql index e96ca1d29..a7c6ece5b 100644 --- a/db/routines/vn2008/views/payroll_conceptos.sql +++ b/db/routines/vn2008/views/payroll_conceptos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`payroll_conceptos` AS SELECT `pc`.`id` AS `conceptoid`, diff --git a/db/routines/vn2008/views/plantpassport.sql b/db/routines/vn2008/views/plantpassport.sql index c983fab0a..b1be6a80b 100644 --- a/db/routines/vn2008/views/plantpassport.sql +++ b/db/routines/vn2008/views/plantpassport.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`plantpassport` AS SELECT `pp`.`producerFk` AS `producer_id`, diff --git a/db/routines/vn2008/views/plantpassport_authority.sql b/db/routines/vn2008/views/plantpassport_authority.sql index b8566a8f3..4548bbede 100644 --- a/db/routines/vn2008/views/plantpassport_authority.sql +++ b/db/routines/vn2008/views/plantpassport_authority.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`plantpassport_authority` AS SELECT `ppa`.`id` AS `plantpassport_authority_id`, diff --git a/db/routines/vn2008/views/price_fixed.sql b/db/routines/vn2008/views/price_fixed.sql index 306e9d887..ce8170e7c 100644 --- a/db/routines/vn2008/views/price_fixed.sql +++ b/db/routines/vn2008/views/price_fixed.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`price_fixed` AS SELECT `pf`.`itemFk` AS `item_id`, diff --git a/db/routines/vn2008/views/producer.sql b/db/routines/vn2008/views/producer.sql index dbf7833ca..babfb887e 100644 --- a/db/routines/vn2008/views/producer.sql +++ b/db/routines/vn2008/views/producer.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`producer` AS SELECT `p`.`id` AS `producer_id`, diff --git a/db/routines/vn2008/views/promissoryNote.sql b/db/routines/vn2008/views/promissoryNote.sql index e8d3b8718..0db0fa86f 100644 --- a/db/routines/vn2008/views/promissoryNote.sql +++ b/db/routines/vn2008/views/promissoryNote.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Pagares` AS SELECT `p`.`id` AS `Id_Pagare`, diff --git a/db/routines/vn2008/views/proveedores_clientes.sql b/db/routines/vn2008/views/proveedores_clientes.sql index 1e5c75f54..e08f4a3a7 100644 --- a/db/routines/vn2008/views/proveedores_clientes.sql +++ b/db/routines/vn2008/views/proveedores_clientes.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`proveedores_clientes` AS SELECT `Proveedores`.`Id_Proveedor` AS `Id_Proveedor`, diff --git a/db/routines/vn2008/views/province.sql b/db/routines/vn2008/views/province.sql index 1a08497bc..1477ec803 100644 --- a/db/routines/vn2008/views/province.sql +++ b/db/routines/vn2008/views/province.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`province` AS SELECT `p`.`id` AS `province_id`, diff --git a/db/routines/vn2008/views/recibida.sql b/db/routines/vn2008/views/recibida.sql index ae48debb6..76b86505e 100644 --- a/db/routines/vn2008/views/recibida.sql +++ b/db/routines/vn2008/views/recibida.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`recibida` AS SELECT `r`.`id` AS `id`, diff --git a/db/routines/vn2008/views/recibida_intrastat.sql b/db/routines/vn2008/views/recibida_intrastat.sql index fd472c55a..402781931 100644 --- a/db/routines/vn2008/views/recibida_intrastat.sql +++ b/db/routines/vn2008/views/recibida_intrastat.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`recibida_intrastat` AS SELECT `i`.`invoiceInFk` AS `recibida_id`, diff --git a/db/routines/vn2008/views/recibida_iva.sql b/db/routines/vn2008/views/recibida_iva.sql index 96f5c1736..7d948a6ff 100644 --- a/db/routines/vn2008/views/recibida_iva.sql +++ b/db/routines/vn2008/views/recibida_iva.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`recibida_iva` AS SELECT `i`.`id` AS `id`, diff --git a/db/routines/vn2008/views/recibida_vencimiento.sql b/db/routines/vn2008/views/recibida_vencimiento.sql index d06230e37..813ae40d7 100644 --- a/db/routines/vn2008/views/recibida_vencimiento.sql +++ b/db/routines/vn2008/views/recibida_vencimiento.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`recibida_vencimiento` AS SELECT `r`.`id` AS `id`, diff --git a/db/routines/vn2008/views/recovery.sql b/db/routines/vn2008/views/recovery.sql index 905ffc347..5bbff3124 100644 --- a/db/routines/vn2008/views/recovery.sql +++ b/db/routines/vn2008/views/recovery.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`recovery` AS SELECT `r`.`id` AS `recovery_id`, diff --git a/db/routines/vn2008/views/reference_rate.sql b/db/routines/vn2008/views/reference_rate.sql index e0d09db58..eb0f1c25e 100644 --- a/db/routines/vn2008/views/reference_rate.sql +++ b/db/routines/vn2008/views/reference_rate.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`reference_rate` AS SELECT `rr`.`currencyFk` AS `moneda_id`, diff --git a/db/routines/vn2008/views/reinos.sql b/db/routines/vn2008/views/reinos.sql index 3b1299bb0..4d98d1f09 100644 --- a/db/routines/vn2008/views/reinos.sql +++ b/db/routines/vn2008/views/reinos.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`reinos` AS SELECT `r`.`id` AS `id`, diff --git a/db/routines/vn2008/views/state.sql b/db/routines/vn2008/views/state.sql index 7731eb3cc..63f6589af 100644 --- a/db/routines/vn2008/views/state.sql +++ b/db/routines/vn2008/views/state.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`state` AS SELECT `s`.`id` AS `id`, diff --git a/db/routines/vn2008/views/tag.sql b/db/routines/vn2008/views/tag.sql index 9a1c5c675..25b3ab82e 100644 --- a/db/routines/vn2008/views/tag.sql +++ b/db/routines/vn2008/views/tag.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`tag` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/vn2008/views/tarifa_componentes.sql b/db/routines/vn2008/views/tarifa_componentes.sql index 72f15bfee..bec53abd9 100644 --- a/db/routines/vn2008/views/tarifa_componentes.sql +++ b/db/routines/vn2008/views/tarifa_componentes.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`tarifa_componentes` AS SELECT `tarifa_componentes`.`Id_Componente` AS `Id_Componente`, diff --git a/db/routines/vn2008/views/tarifa_componentes_series.sql b/db/routines/vn2008/views/tarifa_componentes_series.sql index ecf425b19..a1d188709 100644 --- a/db/routines/vn2008/views/tarifa_componentes_series.sql +++ b/db/routines/vn2008/views/tarifa_componentes_series.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`tarifa_componentes_series` AS SELECT `tarifa_componentes_series`.`tarifa_componentes_series_id` AS `tarifa_componentes_series_id`, diff --git a/db/routines/vn2008/views/tblContadores.sql b/db/routines/vn2008/views/tblContadores.sql index 360171a8b..129d3ce8b 100644 --- a/db/routines/vn2008/views/tblContadores.sql +++ b/db/routines/vn2008/views/tblContadores.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`tblContadores` AS SELECT `c`.`id` AS `id`, diff --git a/db/routines/vn2008/views/thermograph.sql b/db/routines/vn2008/views/thermograph.sql index 209d89e91..f51b83d24 100644 --- a/db/routines/vn2008/views/thermograph.sql +++ b/db/routines/vn2008/views/thermograph.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`thermograph` AS SELECT `t`.`id` AS `thermograph_id`, diff --git a/db/routines/vn2008/views/ticket_observation.sql b/db/routines/vn2008/views/ticket_observation.sql index d2aa4733b..deb85e4b6 100644 --- a/db/routines/vn2008/views/ticket_observation.sql +++ b/db/routines/vn2008/views/ticket_observation.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`ticket_observation` AS SELECT `to`.`id` AS `ticket_observation_id`, diff --git a/db/routines/vn2008/views/tickets_gestdoc.sql b/db/routines/vn2008/views/tickets_gestdoc.sql index 707ca8ad8..a8682db57 100644 --- a/db/routines/vn2008/views/tickets_gestdoc.sql +++ b/db/routines/vn2008/views/tickets_gestdoc.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`tickets_gestdoc` AS SELECT `td`.`ticketFk` AS `Id_Ticket`, diff --git a/db/routines/vn2008/views/time.sql b/db/routines/vn2008/views/time.sql index 72104e570..f3bbc8607 100644 --- a/db/routines/vn2008/views/time.sql +++ b/db/routines/vn2008/views/time.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`time` AS SELECT `t`.`dated` AS `date`, diff --git a/db/routines/vn2008/views/travel.sql b/db/routines/vn2008/views/travel.sql index cebde6aae..b55dbf9b6 100644 --- a/db/routines/vn2008/views/travel.sql +++ b/db/routines/vn2008/views/travel.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`travel` AS SELECT `t`.`id` AS `id`, diff --git a/db/routines/vn2008/views/v_Articles_botanical.sql b/db/routines/vn2008/views/v_Articles_botanical.sql index 18db5bf2e..8640bb638 100644 --- a/db/routines/vn2008/views/v_Articles_botanical.sql +++ b/db/routines/vn2008/views/v_Articles_botanical.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`v_Articles_botanical` AS SELECT `ib`.`itemFk` AS `itemFk`, diff --git a/db/routines/vn2008/views/v_compres.sql b/db/routines/vn2008/views/v_compres.sql index 34b789cf8..8bd6a4a64 100644 --- a/db/routines/vn2008/views/v_compres.sql +++ b/db/routines/vn2008/views/v_compres.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`v_compres` AS SELECT `TP`.`Id_Tipo` AS `Familia`, diff --git a/db/routines/vn2008/views/v_empresa.sql b/db/routines/vn2008/views/v_empresa.sql index 16c9646c2..5a6d6e0f5 100644 --- a/db/routines/vn2008/views/v_empresa.sql +++ b/db/routines/vn2008/views/v_empresa.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`v_empresa` AS SELECT `e`.`logo` AS `logo`, diff --git a/db/routines/vn2008/views/versiones.sql b/db/routines/vn2008/views/versiones.sql index 3066327c9..3d27f4f92 100644 --- a/db/routines/vn2008/views/versiones.sql +++ b/db/routines/vn2008/views/versiones.sql @@ -1,4 +1,4 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`versiones` AS SELECT `m`.`app` AS `programa`, diff --git a/db/routines/vn2008/views/warehouse_pickup.sql b/db/routines/vn2008/views/warehouse_pickup.sql index 739d6d975..c3a7268a1 100644 --- a/db/routines/vn2008/views/warehouse_pickup.sql +++ b/db/routines/vn2008/views/warehouse_pickup.sql @@ -1,5 +1,5 @@ -CREATE OR REPLACE DEFINER=`vn`@`localhost` +CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`warehouse_pickup` AS SELECT