G
G
grigorie19902019-11-29 17:00:23
SQL
grigorie1990, 2019-11-29 17:00:23

How to make a new schema in laravel migration?

I want to make a new schema in laravel migration and roll it back. Probably it is crude request it is possible to make. Do not tell me how to write raw requests in migration or orm can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ramm, 2019-11-29
@rammtw

Do it via DB::statement($sql)
In up respectively "CREATE SCHEMA ..."
In down "DROP SCHEMA ..."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question