mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-10 00:29:27 +00:00
add IF NOT EXISTS to schema and extension creation
This commit is contained in:
@@ -7,12 +7,12 @@ if ($result = $db->db_query("SELECT * FROM information_schema.tables WHERE table
|
||||
if ($db->db_num_rows($result) == 0)
|
||||
{
|
||||
$qry = "
|
||||
CREATE SCHEMA hr;
|
||||
CREATE SCHEMA IF NOT EXISTS hr;
|
||||
COMMENT ON SCHEMA hr IS E'Personalverwaltung';
|
||||
|
||||
ALTER SCHEMA hr OWNER TO fhcomplete;
|
||||
|
||||
CREATE EXTENSION pgcrypto;
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
|
||||
CREATE TABLE hr.tbl_dienstverhaeltnis
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user