- 
                Notifications
    
You must be signed in to change notification settings  - Fork 358
 
(feat) allows to add SQL statements to schema migration executed after tables were created/altered #2791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
          ✅ Deploy Preview for dlt-hub-docs canceled.
  | 
    
8ac2fd9    to
    d44ccb9      
    Compare
  
    | for sql in post_sql_statements: | ||
| if not sql.endswith(";"): | ||
| sql += ";" | ||
| post_sql_updates.append(sql) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's best to extract this into a utility method, can do as a follow-up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, there's a small code repetition we can address this in a follow up PR.
| 
           @rudolfix and we'd need a test for it.  | 
    
…r tables were created/altered (#2791)
Description
Allows to override
_get_table_post_update_sqlin sql job client. The intended usage is to add additional statements (ie. foreign references) that must be executed after all tables were created/altered.