TheSoftwareHouse / fogger

MIT License
138 stars 44 forks source link

Drop target database schema before next run #10

Open ghost opened 6 years ago

ghost commented 6 years ago

After using second time command fogger:run target database schema is not empty what causes the error table or view already exists

I suggest to:

  1. Check if target DB is not empty
  2. Ask user to clear it (drop schema)
  3. Remove foreign keys and tables