-
Шаг 1: создать группу пользователей. Например, developers
-
Шаг 2: добавить в группу пользователей. Например, petrov и bashirov входят в группу developers
-
Шаг 3: изменить umask на 0002 для всех этих пользователей. Обычно это делается в файле
~/.profile
командойumask 002
-
Шаг 4: изменить принадлежность той директории, в которой будет вестись совместная работа( например, vhosts ), группе developers.
sudo chown :developers vhosts
This file contains 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
-- Удалить все свойства корзины, которые связаны с корзинами, которые связаны с заказами, вместе с этими корзинами и заказами | |
-- ATTENTION! Этот запрос ОЧЕНЬ долгий. Соединение с базой может отвалиться по таймауту! | |
-- TODO Попытаться добавить защиту от долго выполняющегося запроса. | |
delete BP, B, O | |
from b_sale_basket_props as BP | |
inner join b_sale_basket as B | |
on BP.BASKET_ID = B.ID | |
inner join b_sale_order as O | |
on B.ORDER_ID = O.ID | |
where B.ORDER_ID is not null; |
This file contains 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
Name Expression Default Value Skip if defined | |
START | |
TYPE enum("string", "array", "int", "float", "bool") | |
NAME capitalize(camelCase(substringBefore(START, "_VALUE"))) true |
(Инструкция подходит в случае, когда миграции зависят от Adv\Bitrixtools\Migration\SprintMigrationBase.php)
1 Создать в подходящем месте класс SprintMigrationBase
на основе шаблона SprintMigrationBase.php . Например, его FQN = Acme\AcmeBundle\Migrations\SprintMigrationBase
2 Заменить во всех файлах Adv\Bitrixtools\Migration\SprintMigrationBase
на Acme\AcmeBundle\Migrations\SprintMigrationBase
(FQN SprintMigrationBase в конкретной библиотеке, бандле)
3 Проконтролировать, чтобы в конфиге миграций опция migration_extend_class
также указывала на Acme\AcmeBundle\Migrations\SprintMigrationBase
This file contains 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
# $ sudo visudo | |
# should be applied | |
# Allow members of group sudo to execute any command | |
%sudo ALL=(ALL:ALL) NOPASSWD: ALL |
This file contains 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
# From https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#latest-releases-via-apt-ubuntu | |
sudo apt-add-repository --yes --update ppa:ansible/ansible | |
sudo apt-get update | |
sudo apt-get install --yes software-properties-common ansible |
NewerOlder