waynestate / nova-ckeditor4-field

A Laravel Nova CKEditor4 WYSIWYG Field
MIT License
61 stars 24 forks source link

Ignore creating tables, if they already exist #68

Closed chrispelzer closed 2 years ago

chrispelzer commented 2 years ago

Wrap the creates with hasTable to make sure they don't exist before trying to create them, otherwise it will error if tables are created outside migrations with no way of avoiding previously

Fixes #67

webcodecs commented 2 years ago

I would recommend to wrap the publishing of the migrations with hasTable and not the migration himself. In this case we will get a lot of entries in the migration table.