Skip to content

Commit

Permalink
[profiles] split promotion, migration
Browse files Browse the repository at this point in the history
  • Loading branch information
voltini committed Dec 12, 2024
1 parent 2d36cd8 commit 05eb063
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dbschema/migrations/00028-m1vnk3u.edgeql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CREATE MIGRATION m1vnk3u6ttr6yrd4dkxficgsidqy5264drzusoppur7gowyhmkzmwa
ONTO m1mim5pih5xgtor6tm6znfotxp7wlkobamdoy7ih72fnwlrldagcqa
{
ALTER TYPE user::Profile {
CREATE PROPERTY n7_major: std::str;
};
ALTER TYPE user::Profile {
CREATE PROPERTY graduation_year: std::str;
DROP PROPERTY promotion;
};
};
3 changes: 2 additions & 1 deletion dbschema/user.esdl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ module user {
type Profile {
property birthday -> datetime;
property full_name -> str;
property graduation_year -> str;
property photo -> str;
property promotion -> str;
property pronouns -> str;
property n7_major -> str;
property telephone -> str;
required link user -> User {
constraint exclusive;
Expand Down

0 comments on commit 05eb063

Please sign in to comment.