awssat / laravel-sync-migration

Developer tool helps to sync migrations without refreshing the database
MIT License
108 stars 13 forks source link

Exception when table name is variable #2

Open apair opened 5 years ago

apair commented 5 years ago

In a migration file when the table name is variable like $config['role'], an exception thrown :

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[roles]' at line 1 (SQL: DESCRIBE $config[roles])
BSN4 commented 5 years ago

Thanks for reporting I'll try to fix it soon