Helper functions related to administration of the database, creating tables, removing tables and configuring administration user.
Function | ensure_admin_user | Undocumented |
Function | create_main_branch | Creates a new branch and sets it as the main branch for the system |
Function | _register_payment_methods | Registers the payment methods and creates persistent |
Function | _ensure_card_providers | Creates a list of default card providers |
Function | get_admin_user | Retrieves the current administrator user for the system |
Function | ensure_sellable_constants | Create native sellable constants. |
Function | user_has_usesuper | This method checks if the currently logged in postgres user has |
Function | _create_procedural_languages | Creates procedural SQL languages we're going to use in scripts |
Function | _get_latest_schema | Undocumented |
Function | create_base_schema | Undocumented |
Function | create_default_profiles | Undocumented |
Function | _install_invoice_templates | Undocumented |
Function | initialize_system | Call all the necessary methods to startup Stoq applications for |
Parameters | trans | a database transaction |
name | name of the new branch |
Parameters | conn | a database connection |
Returns | the admin user for the system |