mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
12 lines
278 B
PL/PgSQL
12 lines
278 B
PL/PgSQL
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
|
|
|
|
-- Modified At
|
|
|
|
CREATE OR REPLACE FUNCTION update_modified_at()
|
|
RETURNS TRIGGER AS $updt$
|
|
BEGIN
|
|
NEW.modified_at := clock_timestamp();
|
|
RETURN NEW;
|
|
END;
|
|
$updt$ LANGUAGE plpgsql;
|