Improving Migration Order Clarity in fastn
              
              #1911
            
            
                  
                    
                      Arpita-Jaiswal
                    
                  
                
                  started this conversation in
                Ideas & RFCs
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Currently,
fastnmigrations require users to manually add migration entries in the correct order, from bottom to top. This method can lead to confusion and errors, as shown in the example below:In this scenario, users must ensure the
initialmigration is listed after thealter-foo-add-cmigration to maintain the correct order of operations. This can be counterintuitive and error-prone.Proposed Solution
To improve the clarity and reliability of migration orders, we propose introducing a
numberfield in each migration entry. This change will ensure that migrations are applied in a strictly increasing sequence, removing the ambiguity for users.Benefits
fastnwill enforce that migration numbers are strictly increasing, preventing out-of-order migrations.Beta Was this translation helpful? Give feedback.
All reactions