File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
coderd/database/migrations Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ DROP TRIGGER trig_uuid_to_longid_users ON users;
5
5
DROP TRIGGER trig_uuid_to_longid_organizations ON organizations;
6
6
DROP TRIGGER trig_uuid_to_longid_organization_members_user_id ON organization_members;
7
7
DROP TRIGGER trig_uuid_to_longid_organization_members_org_id ON organization_members;
8
+ DROP TRIGGER trig_uuid_to_longid_api_keys_user_id ON api_keys;
8
9
9
10
DROP FUNCTION org_uuid_to_longid_trigger;
10
11
DROP FUNCTION user_uuid_to_longid_trigger;
Original file line number Diff line number Diff line change @@ -229,6 +229,13 @@ EXCEPTION
229
229
WHEN duplicate_object THEN null ;
230
230
END $$;
231
231
232
+ CREATE TRIGGER
233
+ trig_uuid_to_longid_api_keys_user_id
234
+ BEFORE INSERT ON
235
+ api_keys
236
+ FOR EACH ROW EXECUTE PROCEDURE
237
+ user_uuid_to_longid_trigger();
238
+
232
239
CREATE TABLE IF NOT EXISTS licenses (
233
240
id serial ,
234
241
license jsonb NOT NULL ,
You can’t perform that action at this time.
0 commit comments