-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
71 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SKIP ic-ref-run | ||
install $ID upgrade-migration/version0.mo "" | ||
ingress $ID check "DIDL\x00\x00" | ||
upgrade $ID upgrade-migration/version1.mo "" | ||
ingress $ID __motoko_gc_trigger "DIDL\x00\x00" | ||
ingress $ID check "DIDL\x00\x00" | ||
upgrade $ID upgrade-migration/version2.mo "" | ||
ingress $ID __motoko_gc_trigger "DIDL\x00\x00" | ||
ingress $ID check "DIDL\x00\x00" | ||
upgrade $ID upgrade-migration/version2.mo "" | ||
ingress $ID check "DIDL\x00\x00" |
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,12 @@ | ||
module { | ||
|
||
public func run( o: { var one : [var Nat]; | ||
var two : [var Nat]; | ||
} ) : | ||
{ var three : [var (Nat,Nat)] } { | ||
{ | ||
var three = [var (o.one[0], o.two[0])] | ||
} | ||
} | ||
|
||
} |
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,10 @@ | ||
module { | ||
|
||
public func run( o : { var three : [var (Nat,Nat)] } ) : | ||
{ var four : [var (Nat,Nat)] } { | ||
{ | ||
var four = o.three; | ||
} | ||
} | ||
|
||
} |
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,11 @@ | ||
import Prim "mo:prim"; | ||
|
||
actor { | ||
Prim.debugPrint("Version 0"); | ||
|
||
stable var one : [var Nat] = [var 1,2]; | ||
stable var two : [var Nat] = [var 1,2]; | ||
|
||
public func check(): async() { | ||
}; | ||
}; |
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,14 @@ | ||
import Prim "mo:prim"; | ||
import Migration "Migration1"; | ||
|
||
actor { | ||
|
||
Prim.debugPrint("Version 1"); | ||
|
||
stable var version = 0; | ||
|
||
stable var three : [var (Nat,Nat)] = [var ]; | ||
|
||
public func check(): async() { | ||
} | ||
}; |
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,13 @@ | ||
import Prim "mo:prim"; | ||
import Migration "Migration2"; | ||
|
||
actor [Migration.run] { | ||
|
||
Prim.debugPrint("Version 2"); | ||
|
||
stable var version = 2; | ||
stable var four : [var (Nat,Nat)] = [var]; | ||
|
||
public func check(): async() { | ||
} | ||
}; |