A foreign key constraint on a stored generated column cannot use CASCADE, SET NULL, or SET DEFAULT as ON UPDATE referential actions, nor can it use SET NULL or SET DEFAULT as ON DELETE referential actions.
A foreign key constraint on the base column of a stored generated column cannot use CASCADE, SET NULL, or SET DEFAULT as ON UPDATE or ON DELETE referential actions.
// сначала
[['very', 'long', 'row', 'of', 'words']]
// находим, что по длине надо разбить так:
[
['very', 'long', 'row'],
['of', 'words'],
]
// склеиваем в строки
[
'very long row',
'of words',
]
// строки добиваем пробелами справа до нужной длины str.padEnd(16)
[
'very long row ',
'of words ',
]
// и добавляем по звёздочке в начале и в конце
[
'* very long row *',
'* of words *',
]
// добавляем в начале и в конце массива строк
// длинные строки звёздочек
starRow = '*'.repeat(18);
[
starRow,
'* very long row *',
'* of words *',
starRow,
]
// всё, склеиваем этот массив в одну строку через символ новой строки, скажем:
.join('\n')
post_action
не дёргается? location ^~ /attachments/download_zip/ {
proxy_pass http://mongrel;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X_Forwarded_Proto $scheme;
proxy_read_timeout 120;
proxy_connect_timeout 120;
post_action @notify_zip
}
location @notify_zip {
# Current request is GET /attachments/download_zip/ so we we have to rewrite it
rewrite ^(.*)$ /download_notify_zip break;
proxy_pass http://mongrel;
proxy_set_header RateBytes $body_bytes_sent;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X_Forwarded_Proto $scheme;
proxy_pass_request_body off;
proxy_pass_request_headers off;
}
This directive never was documented, and it should not be used
unless you understand what this directive does and associated
risks. It is not officially supported.
--
Maxim Dounin
nginx.org