File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change
1
+ CREATE MIGRATION m1zpp5l5wqgcm7hmcunnzswx6oivv7eh5gtwq5ysfaxlk5vhkfjieq
2
+ ONTO m1wmrb3grzq5y55y5c447noyxdw26fcpatlu46n5f6ffh572opam6a
3
+ {
4
+ ALTER TYPE default :: Post {
5
+ ALTER LINK container {
6
+ SET TYPE Mixin:: Postable USING (.container[IS Mixin:: Postable]);
7
+ };
8
+ DROP TRIGGER enforcePostable;
9
+ };
10
+ };
Original file line number Diff line number Diff line change 1
1
module default {
2
2
type Post extending Resource, Mixin:: Embedded, Mixin:: Owned {
3
- # https://github.com/edgedb/edgedb/issues/6695
4
- # overloaded required single link container: Mixin::Postable
5
- overloaded required single link container {
3
+ overloaded required single link container: Mixin:: Postable {
6
4
on target delete delete source ;
7
5
};
8
- trigger enforcePostable after insert , update for each do (
9
- assert (
10
- __new__ .container is Mixin:: Postable,
11
- message := " A Post's container must be a Postable"
12
- )
13
- );
14
6
15
7
required type : Post:: Type;
16
8
required shareability: Post:: Shareability;
You can’t perform that action at this time.
0 commit comments