Skip to content

Commit

Permalink
Merge pull request #130 from xiangmy21/dev
Browse files Browse the repository at this point in the history
feat(users): add a column id
  • Loading branch information
xiangmy21 authored Nov 20, 2023
2 parents 3e0d8b5 + c8d5e03 commit 2632d24
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2943,6 +2943,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand All @@ -2962,6 +2963,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand All @@ -2981,6 +2983,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand All @@ -3000,6 +3003,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand All @@ -3020,6 +3024,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand All @@ -3040,6 +3045,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand All @@ -3060,6 +3066,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand All @@ -3080,6 +3087,7 @@
- department
- email
- github_id
- id
- phone
- realname
- role
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."users" add column "id" text
-- null unique;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table "public"."users" add column "id" text
null unique;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."users" alter column "role" set default 'user'::text;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."users" alter column "role" set default 'anonymous';

0 comments on commit 2632d24

Please sign in to comment.