File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
lib/activerecord-clean-db-structure Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def run
8080      partitioned_tables  += dump . scan ( partitioned_tables_regexp1 ) . map ( &:last ) 
8181
8282      # Earlier versions use an inline PARTITION OF 
83-       partitioned_tables_regexp2  =  /-- Name: ([\w  _ \. ]+); Type: TABLE\n \n [^;]+?PARTITION OF [\w  _ \. ]+\n [^;]+?;/m 
83+       partitioned_tables_regexp2  =  /-- Name: ([\w  \. ]+); Type: TABLE\n \n [^;]+?PARTITION OF [\w  \. ]+\n [^;]+?;/m 
8484      partitioned_tables  += dump . scan ( partitioned_tables_regexp2 ) . map ( &:first ) 
8585
8686      partitioned_tables . each  do  |partitioned_table |
@@ -104,7 +104,7 @@ def run
104104        dump . gsub! ( /-- Name: #{ partitioned_table } \n \n [^;]+?ATTACH PARTITION ([\w _]+\. )?#{ partitioned_table }  ,  '' ) 
105105      end 
106106      # This is mostly done to allow restoring Postgres 11 output on Postgres 10 
107-       dump . gsub! ( /CREATE INDEX ([\w  _ ]+) ON ONLY/ ,  'CREATE INDEX \\1 ON' ) 
107+       dump . gsub! ( /CREATE INDEX ([\w  ]+) ON ONLY/ ,  'CREATE INDEX \\1 ON' ) 
108108
109109      if  options [ :order_schema_migrations_values ]  == true 
110110        schema_migrations_cleanup 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments