-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2932: feat(auth-api, auth-portal): Show the owner of the workspace when you are an editor r=stack72 a=stack72 Also, show when you were invited to a workspace. Any existing invitations will be set to the date we run this migration as we don’t have a backward set of data on this <img width="1225" alt="Screenshot 2023-11-03 at 18 28 23" src="https://github.com/systeminit/si/assets/227823/90c0f3b8-88a5-4bcf-bb0e-305c13a92733"> Co-authored-by: stack72 <[email protected]>
- Loading branch information
Showing
5 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
bin/auth-api/prisma/migrations/20231102231111_workspace_members_invited_at/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- AlterTable | ||
ALTER TABLE "WorkspaceMembers" ADD COLUMN "invited_at" TIMESTAMP(3); | ||
|
||
-- Backfill the existing rows in the database | ||
UPDATE "WorkspaceMembers" | ||
SET "invited_at" = NOW() where "invited_at" IS NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters