*/
public function safeUp()
{
+ return;
$this->createTable(self::TABLE_NAME, [
'id' => $this->primaryKey(),
'store_id' => $this->integer()->notNull()->comment('ID магазина'),
*/
public function safeUp()
{
+ return;
$this->execute('SET search_path TO erp24');
// Создаем тип ENUM
*/
public function safeUp()
{
+ return;
$this->createTable(self::TABLE_NAME, [
'id' => $this->primaryKey(),
'incoming_id' => $this->string(36)->notNull()->comment('ID из таблицы incoming'),
*/
public function safeUp()
{
+ return;
$this->createTable('{{%erp24.api_cron_buh}}', [
'id' => $this->primaryKey(),
'date' => $this->dateTime()->notNull(),
*/
public function safeUp()
{
+ return;
$this->insert(self::TABLE_NAME, [
'id' => 9,
'name' => 'Прогноз',
*/
public function safeUp()
{
+ return;
$this->dropColumn('api_cron_buh', 'request_id');
$this->addColumn('api_cron_buh', 'request_id', $this->string(36)->unique()->comment('ID запроса'));
$this->addColumn('api_cron_buh', 'inn', $this->bigInteger()->comment('ИНН'));
*/
public function safeUp()
{
+ return;
$this->createTable(self::TABLE_NAME, [
'id' => $this->primaryKey(),
'inn' => $this->integer()->notNull()->comment('ИНН фирмы источника данных'),
*/
public function safeUp()
{
+ return true;
$this->createTable(self::TABLE_NAME, [
'id' => $this->primaryKey(),
'store_id' => $this->integer()->notNull()->comment('store id'),