1
0
mirror of https://github.com/bitwarden/server synced 2026-01-03 09:03:44 +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,5 +1,3 @@
DROP SCHEMA bitwarden cascade;
DROP SCHEMA if exists bitwarden cascade;
CREATE SCHEMA bitwarden AUTHORIZATION bitwarden;
ALTER ROLE bitwarden SET search_path TO bitwarden;