This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Найти файл репозитория в /etc/apt/sources.list.d/ | |
| ls /etc/apt/sources.list.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Шаг 1 | |
| Чтобы полностью удалить Docker: | |
| dpkg -l | grep -i docker | |
| Чтобы определить, какой у вас установлен пакет: | |
| Шаг 2 | |
| sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli docker-compose-plugin | |
| sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce docker-compose-plugin | |
| Приведенные выше команды не удалят образы, контейнеры, тома или созданные пользователем файлы конфигурации на вашем хосте. Если вы хотите удалить все образы, контейнеры и тома, выполните следующие команды: | |
| sudo rm -rf /var/lib/docker /etc/docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://learntutorials.net/ru/yii2/topic/1929/%D0%BC%D0%B8%D0%B3%D1%80%D0%B0%D1%86%D0%B8%D0%B8-%D0%B1%D0%B0%D0%B7-%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85 | |
| Создание мигрантов | |
| yii migrate/create <name> | |
| Необходимый аргумент имени дает краткое описание новой миграции. Например, если миграция связана с созданием новой таблицы с именем news, вы можете использовать имя create_news_table и запустить следующую команду | |
| yii migrate/create create_news_table | |
| Пример файла миграции | |
| <?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DB | |
| { | |
| public $conn; | |
| private $dbHost; | |
| private $dbUser; | |
| private $dbPass; | |
| private $dbName; | |
| public function __construct() |