0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-28 09:30:07 -05:00
penpot/backend/resources/migrations/0001.main.sql
2020-01-25 17:23:21 +01:00

12 lines
267 B
PL/PgSQL

CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
-- Modified At
CREATE FUNCTION update_modified_at()
RETURNS TRIGGER AS $updt$
BEGIN
NEW.modified_at := clock_timestamp();
RETURN NEW;
END;
$updt$ LANGUAGE plpgsql;