@@ -57,12 +57,12 @@ def downgrade():
57
57
op .drop_column ('stop_time' , 'order' , schema = 'navitia' )
58
58
op .create_table (
59
59
'journey_pattern' ,
60
- sa .Column ('id' , BIGINT (), primary_key = True , nullable = False ),
61
- sa .Column ('route_id' , BIGINT (), primary_key = False , nullable = False ),
62
- sa .Column ('physical_mode_id' , BIGINT (), primary_key = False , nullable = False ),
63
- sa .Column ('uri' , TEXT (), primary_key = False , nullable = False ),
64
- sa .Column ('name' , TEXT (), primary_key = False , nullable = False ),
65
- sa .Column ('is_frequence' , BOOLEAN (), primary_key = False , nullable = False ),
60
+ sa .Column ('id' , sa . BIGINT (), primary_key = True , nullable = False ),
61
+ sa .Column ('route_id' , sa . BIGINT (), primary_key = False , nullable = False ),
62
+ sa .Column ('physical_mode_id' , sa . BIGINT (), primary_key = False , nullable = False ),
63
+ sa .Column ('uri' , sa . TEXT (), primary_key = False , nullable = False ),
64
+ sa .Column ('name' , sa . TEXT (), primary_key = False , nullable = False ),
65
+ sa .Column ('is_frequence' , sa . BOOLEAN (), primary_key = False , nullable = False ),
66
66
sa .ForeignKeyConstraint (['route_id' ], [u'navitia.route.id' ], name = u'journey_pattern_route_id_fkey' ),
67
67
sa .ForeignKeyConstraint (
68
68
['physical_mode_id' ], [u'navitia.physical_mode.id' ], name = u'journey_pattern_physical_mode_id_fkey'
@@ -71,15 +71,15 @@ def downgrade():
71
71
)
72
72
op .create_table (
73
73
'journey_pattern_point' ,
74
- sa .Column ('id' , BIGINT (), primary_key = True , nullable = False ),
75
- sa .Column ('journey_pattern_id' , BIGINT (), primary_key = False , nullable = False ),
76
- sa .Column ('name' , TEXT (), primary_key = False , nullable = False ),
77
- sa .Column ('uri' , TEXT (), primary_key = False , nullable = False ),
78
- sa .Column ('order' , INTEGER (), primary_key = False , nullable = False ),
79
- sa .Column ('stop_point_id' , BIGINT (), primary_key = False , nullable = False ),
74
+ sa .Column ('id' , sa . BIGINT (), primary_key = True , nullable = False ),
75
+ sa .Column ('journey_pattern_id' , sa . BIGINT (), primary_key = False , nullable = False ),
76
+ sa .Column ('name' , sa . TEXT (), primary_key = False , nullable = False ),
77
+ sa .Column ('uri' , sa . TEXT (), primary_key = False , nullable = False ),
78
+ sa .Column ('order' , sa . INTEGER (), primary_key = False , nullable = False ),
79
+ sa .Column ('stop_point_id' , sa . BIGINT (), primary_key = False , nullable = False ),
80
80
sa .Column (
81
81
'shape_from_prev' ,
82
- Geography (geometry_type = 'LINESTRING' , srid = 4326 , spatial_index = False ),
82
+ ga . Geography (geometry_type = 'LINESTRING' , srid = 4326 , spatial_index = False ),
83
83
primary_key = False ,
84
84
),
85
85
sa .ForeignKeyConstraint (
0 commit comments