1
0
mirror of https://github.com/bitwarden/server synced 2025-12-28 14:13:48 +00:00

PostgreSQL - Functions (#578)

* PostgreSQL initial commit of translation from SQL Server to PostgreSQL

* snake_case added.
set search path for schema.  schema qualified name no longer needed for creation and access of functions.

* Table DDL for PostgreSQL

* Rename User.sql to user.sql

* PostgreSQL views, 
snake_case column fix for user_create, 
rename of users.sql file to lowercase

* user_update function

* remove tabs

* cast types, and table DDL changed to match

* case

* resolve casting issues. casting is done inside function

* update views

* more functions

* more functions

* removed casting

* spelling mistake

* spelling

* changes to functions, added replace
This commit is contained in:
Papina
2019-12-02 23:28:18 +10:00
committed by Kyle Spearrin
parent 9e470c1f7a
commit 665e78ec1c
22 changed files with 262 additions and 49 deletions

View File

@@ -1,4 +1,4 @@
CREATE VIEW organization_user_view
CREATE OR REPLACE VIEW organization_user_view
AS
SELECT
*