W
W
wakenby2021-02-13 11:27:37
Yii
wakenby, 2021-02-13 11:27:37

How to create a table in mysql using yii2?

There is a site on yii2 which is already hosted, the connection to mysql is registered there. And now it became necessary for me to create a new table using yii2, since there is no way to get a link to phpmyadmin.

How can I create a new table in mysql through yii2?

The table should be like this:
id => unique key
name => text of 255 characters
text => I don’t remember what the field is called so that you can write a very large

text knew him, can you give a detailed description of how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2021-02-13
@kawabanga

RTFM
https://github.com/yiisoft/yii2/blob/master/docs/g...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question