hi, i install timetrex with the installer on the site.
to migrate the mysql database i folow this simple steps:
first truncate all timetrex tables on postgre:
Code: Select all
TRUNCATE TABLE "absence_policy";
TRUNCATE TABLE "accrual";
TRUNCATE TABLE "accrual_balance";
TRUNCATE TABLE "accrual_policy";
TRUNCATE TABLE "accrual_policy_milestone";
TRUNCATE TABLE "authentication";
TRUNCATE TABLE "authorizations";
TRUNCATE TABLE "bank_account";
TRUNCATE TABLE "branch";
TRUNCATE TABLE "bread_crumb";
TRUNCATE TABLE "company";
TRUNCATE TABLE "company_deduction";
TRUNCATE TABLE "company_deduction_pay_stub_entry_account";
TRUNCATE TABLE "company_user_count";
TRUNCATE TABLE "cron";
TRUNCATE TABLE "currency";
TRUNCATE TABLE "department";
TRUNCATE TABLE "department_branch";
TRUNCATE TABLE "department_branch_user";
TRUNCATE TABLE "exception";
TRUNCATE TABLE "exception_policy";
TRUNCATE TABLE "exception_policy_control";
TRUNCATE TABLE "help";
TRUNCATE TABLE "help_group";
TRUNCATE TABLE "help_group_control";
TRUNCATE TABLE "hierarchy_control";
TRUNCATE TABLE "hierarchy_object_type";
TRUNCATE TABLE "hierarchy_share";
TRUNCATE TABLE "hierarchy_tree";
TRUNCATE TABLE "holidays";
TRUNCATE TABLE "holiday_policy";
TRUNCATE TABLE "holiday_policy_recurring_holiday";
TRUNCATE TABLE "income_tax_rate";
TRUNCATE TABLE "income_tax_rate_cr";
TRUNCATE TABLE "income_tax_rate_us";
TRUNCATE TABLE "meal_policy";
TRUNCATE TABLE "message";
TRUNCATE TABLE "other_field";
TRUNCATE TABLE "over_time_policy";
TRUNCATE TABLE "pay_period";
TRUNCATE TABLE "pay_period_schedule";
TRUNCATE TABLE "pay_period_schedule_user";
TRUNCATE TABLE "pay_period_time_sheet_verify";
TRUNCATE TABLE "pay_stub";
TRUNCATE TABLE "pay_stub_amendment";
TRUNCATE TABLE "pay_stub_entry";
TRUNCATE TABLE "pay_stub_entry_account";
TRUNCATE TABLE "pay_stub_entry_account_link";
TRUNCATE TABLE "permission";
TRUNCATE TABLE "permission_control";
TRUNCATE TABLE "permission_old";
TRUNCATE TABLE "permission_user";
TRUNCATE TABLE "policy_group";
TRUNCATE TABLE "policy_group_accrual_policy";
TRUNCATE TABLE "policy_group_over_time_policy";
TRUNCATE TABLE "policy_group_premium_policy";
TRUNCATE TABLE "policy_group_round_interval_policy";
TRUNCATE TABLE "policy_group_user";
TRUNCATE TABLE "premium_policy";
TRUNCATE TABLE "premium_policy_branch";
TRUNCATE TABLE "premium_policy_department";
TRUNCATE TABLE "punch";
TRUNCATE TABLE "punch_control";
TRUNCATE TABLE "recurring_holiday";
TRUNCATE TABLE "recurring_ps_amendment";
TRUNCATE TABLE "recurring_ps_amendment_user";
TRUNCATE TABLE "recurring_schedule_control";
TRUNCATE TABLE "recurring_schedule_template";
TRUNCATE TABLE "recurring_schedule_template_control";
TRUNCATE TABLE "recurring_schedule_user";
TRUNCATE TABLE "request";
TRUNCATE TABLE "roe";
TRUNCATE TABLE "round_interval_policy";
TRUNCATE TABLE "schedule";
TRUNCATE TABLE "schedule_policy";
TRUNCATE TABLE "station";
TRUNCATE TABLE "station_branch";
TRUNCATE TABLE "station_department";
TRUNCATE TABLE "station_exclude_user";
TRUNCATE TABLE "station_include_user";
TRUNCATE TABLE "station_user";
TRUNCATE TABLE "station_user_group";
TRUNCATE TABLE "system_log";
TRUNCATE TABLE "system_setting";
TRUNCATE TABLE "users";
TRUNCATE TABLE "user_date";
TRUNCATE TABLE "user_date_total";
TRUNCATE TABLE "user_deduction";
TRUNCATE TABLE "user_default";
TRUNCATE TABLE "user_default_company_deduction";
TRUNCATE TABLE "user_generic_data";
TRUNCATE TABLE "user_generic_status";
TRUNCATE TABLE "user_group";
TRUNCATE TABLE "user_group_tree";
TRUNCATE TABLE "user_identification";
TRUNCATE TABLE "user_pay_period_total";
TRUNCATE TABLE "user_preference";
TRUNCATE TABLE "user_tax";
TRUNCATE TABLE "user_title";
TRUNCATE TABLE "user_wage";
then i make a dump of mysql database without the tables ended on id_seq, only data without "complete inserts" and "extended INSERTs" cause this make errors on postgree
in the .sql file i replace all the ` with " , postgre don't suport `
also i don't export the table system_log cause have to many error for postgre
also station table had a bad date style: 0000-00-00 00:00:00
i replace all the 0000-00-00 00:00:00 with 2000-01-01 00:00:01
if i don't forget nothing, these are the step i follow, sure to many people with useit
but, when we run timetrex with your installer and the migrated database, the issue with pay stub don't be solved
then, the error is not in the timetrex instalation i guess
what other solution can we try???
Regards