@@ -5,8 +5,8 @@ use std::path::Path;
55
66use anyhow:: { anyhow, Context , Error , Result } ;
77use clap:: Parser ;
8- use sqlmo :: { migrate:: Statement , Dialect , Migration , Schema , ToSql } ;
9- use sqlmo_sqlx :: FromPostgres ;
8+ use sql :: { migrate:: Statement , Dialect , Migration , Schema , ToSql } ;
9+ use sql_sqlx :: FromPostgres ;
1010use time:: macros:: format_description;
1111use time:: OffsetDateTime as DateTime ;
1212use tokio:: runtime:: Runtime ;
@@ -184,14 +184,20 @@ fn check_reversible_compatibility(reversible: bool, migration_environment: Optio
184184#[ allow( unused_variables) ]
185185fn experimental_modifications_to_schema ( schema : & mut Schema ) -> Result < ( ) > {
186186 #[ allow( unused_imports) ]
187- use sqlmo :: Type ;
187+ use sql :: Type ;
188188 for table in & mut schema. tables {
189189 for column in & mut table. columns {
190190 #[ cfg( feature = "experimental-sid" ) ]
191191 match & column. typ {
192192 Type :: Other ( z) if z == "Sid" => {
193193 column. typ = Type :: Uuid ;
194194 }
195+ Type :: Other ( z) if z == "Id" => {
196+ column. typ = Type :: Uuid ;
197+ }
198+ Type :: Other ( z) if z == "Timestamp" => {
199+ column. typ = Type :: Timestamp ;
200+ }
195201 _ => { }
196202 }
197203 }
@@ -214,7 +220,7 @@ fn autogenerate_migration(
214220
215221 let migration = current. migrate_to (
216222 desired,
217- & sqlmo :: MigrationOptions {
223+ & sql :: MigrationOptions {
218224 debug : opts. verbose ,
219225 allow_destructive : false ,
220226 } ,
0 commit comments