Skip to content

Commit

Permalink
Merge pull request #4 from fyfe/fixes/pg-schema-typo
Browse files Browse the repository at this point in the history
Database schema fixes
  • Loading branch information
dlangille authored Feb 2, 2021
2 parents aeee33c + e0a4286 commit 82bfac3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PostgreSQL/database-postgresql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
-- temporary table. Might only be used for testing
CREATE TABLE incoming_packages (
id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
data json NOT NULL
data json NOT NULL,
date_added timestamp without time zone NOT NULL default timezone('UTC'::text, now()),
client_ip cidr not null default '198.51.100.0';
client_ip cidr not null default '198.51.100.0'
);


Expand Down Expand Up @@ -51,7 +51,7 @@ BEGIN
END
$$ language 'plpgsql';

DROP TRIGGER update_host_date_updated ON update_host_date_updated;
DROP TRIGGER IF EXISTS update_host_date_updated ON update_host_date_updated;
CREATE TRIGGER update_host_date_updated
BEFORE UPDATE ON host
FOR EACH ROW EXECUTE PROCEDURE update_date_updated();
Expand Down

0 comments on commit 82bfac3

Please sign in to comment.