Skip to content

Postgres support for ERPNext #24389

Description

@rmehta

Frappe Framework has support for both MariaDB and Postgres. ERPNext does not have support for Postgres. While queries are mostly similar, there are 1300 SQL queries that need to be verified and checked. Thankfully we have unit-tests.

Steps:

  1. Setup tests for postgres (similar to Frappe Framework)
  2. Makes sure the tests pass for all queries

If there are problems in certain SQL queries:

  1. Use the ORM
  2. Rewrite the query so that it will work for both databases
  3. Use frappe.db.multi_sql to write separate queries for each platform (for complex joins)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions