In the following video I will setup the connection to the database and show you how to work with database migrations in yii2 framework.
In this video we will see:
- How to create database migrations
- What is the difference between up/safeUp and down/safeDown methods in migration class
- Create table using yii2 migration
- Add column using yii2 migration
- Create foreign key using migration
- Create index using migration
- Drop tables, columns using yii2 migrations
- How to generate database migration files using special naming (REALLY useful thing)
- How to change migration folder
- How to revert, apply or re-apply only several migrations
Source files about migrations:
Read more about Migrations:
Migration class API docs:
----------------------------------------------------------------------------------
Check my other videos about yii2 framework
----------------------------------------------------------------------------------
Yii2 Crash course:
Building a REST API using yii2:
Integrate Landing page into yii2:
Getting started with yii2 framework:
Controllers:
Views & Rendering content:
Working with DAO:
Check my Github:
Follow me on social media:
Смотрите видео Yii2 Migrations - Working with yii2 migrations | yii2 tutorials онлайн без регистрации, длительностью 27 минут 52 секунд в хорошем hd качестве. Это видео добавил пользователь The Codeholic 19 Ноябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12 тысяч раз и оно понравилось 189 людям.