Commit 03547e1 1 parent f17e60c commit 03547e1 Copy full SHA for 03547e1
File tree 4 files changed +21
-5
lines changed
tests/generate_migrations/diff_add_table_all_the_types/postgres
4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ fn pg_diesel_types() -> HashSet<&'static str> {
115
115
types. insert ( "Numrange" ) ;
116
116
types. insert ( "Tsrange" ) ;
117
117
types. insert ( "Tstzrange" ) ;
118
+ types. insert ( "Int4multirange" ) ;
119
+ types. insert ( "Int8multirange" ) ;
120
+ types. insert ( "Datemultirange" ) ;
121
+ types. insert ( "Nummultirange" ) ;
122
+ types. insert ( "Tsmultirange" ) ;
123
+ types. insert ( "Tstzmultirange" ) ;
118
124
types. insert ( "SmallSerial" ) ;
119
125
types. insert ( "BigSerial" ) ;
120
126
types. insert ( "Serial" ) ;
Original file line number Diff line number Diff line change 1
-
2
-
3
1
table ! {
4
2
all_the_types( id) {
5
3
id -> Integer ,
@@ -39,6 +37,11 @@ table! {
39
37
daterange_col -> Daterange ,
40
38
tsrange_col -> Tsrange ,
41
39
tstzrange_col -> Tstzrange ,
40
+ int4multirange_col -> Int4multirange ,
41
+ int8multirange_col -> Int8multirange ,
42
+ datemultirange_col -> Datemultirange ,
43
+ tsmultirange_col -> Tsmultirange ,
44
+ tstzmultirange_col -> Tstzmultirange ,
42
45
small_serial_col -> SmallSerial ,
43
46
big_serial_col -> BigSerial ,
44
47
serial_col -> Serial ,
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ diesel::table! {
45
45
daterange_col - > Daterange ,
46
46
tsrange_col - > Tsrange ,
47
47
tstzrange_col - > Tstzrange ,
48
+ int4multirange_col - > Int4multirange ,
49
+ int8multirange_col - > Int8multirange ,
50
+ datemultirange_col - > Datemultirange ,
51
+ tsmultirange_col - > Tsmultirange ,
52
+ tstzmultirange_col - > Tstzmultirange ,
48
53
small_serial_col - > Int2 ,
49
54
big_serial_col - > Int8 ,
50
55
serial_col - > Int4 ,
Original file line number Diff line number Diff line change 1
1
-- -
2
2
source : diesel_cli / tests / migration_generate .rs
3
- assertion_line : 333
4
3
description : " Test: diff_add_table_all_the_types"
5
4
-- -
6
5
-- Your SQL goes here
@@ -42,11 +41,14 @@ CREATE TABLE "all_the_types"(
42
41
" daterange_col" DATERANGE NOT NULL ,
43
42
" tsrange_col" TSRANGE NOT NULL ,
44
43
" tstzrange_col" TSTZRANGE NOT NULL ,
44
+ " int4multirange_col" INT4MULTIRANGE NOT NULL ,
45
+ " int8multirange_col" INT8MULTIRANGE NOT NULL ,
46
+ " datemultirange_col" DATEMULTIRANGE NOT NULL ,
47
+ " tsmultirange_col" TSMULTIRANGE NOT NULL ,
48
+ " tstzmultirange_col" TSTZMULTIRANGE NOT NULL ,
45
49
" small_serial_col" SMALLSERIAL NOT NULL ,
46
50
" big_serial_col" BIGSERIAL NOT NULL ,
47
51
" serial_col" SERIAL NOT NULL ,
48
52
" bytea_col" BYTEA NOT NULL ,
49
53
" macaddr2_col" MACADDR NOT NULL
50
54
);
51
-
52
-
You can’t perform that action at this time.
0 commit comments