File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -190,11 +190,8 @@ impl TableBuilder for MysqlQueryBuilder {
190190 sql. write_str( " TO " ) . unwrap( ) ;
191191 self . prepare_iden( to_name, sql) ;
192192 }
193- TableAlterOption :: DropColumn ( DropColumnOption { column_name, if_exists } ) => {
193+ TableAlterOption :: DropColumn ( DropColumnOption { column_name, .. } ) => {
194194 sql. write_str( "DROP COLUMN " ) . unwrap( ) ;
195- if * if_exists{
196- panic!( "MySQL does not support drop column if exists" ) ;
197- }
198195 self . prepare_iden( column_name, sql) ;
199196 }
200197 TableAlterOption :: DropForeignKey ( name) => {
Original file line number Diff line number Diff line change @@ -62,14 +62,8 @@ impl TableBuilder for SqliteQueryBuilder {
6262 sql. write_str ( " TO " ) . unwrap ( ) ;
6363 self . prepare_iden ( to_name, sql) ;
6464 }
65- TableAlterOption :: DropColumn ( DropColumnOption {
66- column_name,
67- if_exists,
68- } ) => {
65+ TableAlterOption :: DropColumn ( DropColumnOption { column_name, .. } ) => {
6966 sql. write_str ( "DROP COLUMN " ) . unwrap ( ) ;
70- if * if_exists {
71- panic ! ( "Sqlite does not support drop column if exists" ) ;
72- }
7367 self . prepare_iden ( column_name, sql) ;
7468 }
7569 TableAlterOption :: DropForeignKey ( _) => {
You can’t perform that action at this time.
0 commit comments