- alter column type:
alter table rfd_fms.worklog modify (content varchar2(400));
- add column:
alter table rfd_fms.pixiu_codcheck add flag number(1) default 0 not null;
comment on column rfd_fms.pixiu_codcheck.flag is '标识, 0:妥投 1:全单';
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| [ { "name": "Afghanistan", "dial_code": "+93", "code": "AF" }, { "name": "Åland Islands", "dial_code": "+358", "code": "AX" }, { "name": "Albania", "dial_code": "+355", "code": "AL" }, { "name": "Algeria", "dial_code": "+213", "code": "DZ" }, { "name": "American Samoa", "dial_code": "+1684", "code": "AS" }, { "name": "Andorra", "dial_code": "+376", "code": "AD" }, { "name": "Angola", "dial_code": "+244", "code": "AO" }, { "name": "Anguilla", "dial_code": "+1264", "code": "AI" }, { "name": "Antarctica", "dial_code": "+672", "code": "AQ" }, { "name": "Antigua and Barbuda", "dial_code": "+1268", "code": "AG" }, { "name": "Argentina", "dial_code": "+54", "code": "AR" }, { "name": "Armenia", "dial_code": "+374", "code": "AM" }, { "name": "Aruba", "dial_code": "+297", "code": "AW" }, { "name": "Australia", "dial_code": "+61", "code": "AU" }, { "name": "Austria", "dial_code": "+43", "code": "AT" }, { "name": "Azerbaijan", "dial_code": "+994", "code": "AZ" }, { "name": "Bahamas", "dial_code": "+1242", "code": "BS" }, |
| // Code to encrypt data in sequelize fields | |
| // We are using ascii85 as a way save on storage. Also, note that | |
| // the space delimiter we are using is a bit of an abuse since in | |
| // normal cases ascii85 will skip over it, but since we are using | |
| // after encoding and before encoding, it shouldn't be an issue. | |
| // | |
| // Fields are broken down to facilitate unit testing. | |
| // | |
| // based on code here: http://vancelucas.com/blog/stronger-encryption-and-decryption-in-node-js/ |
| 'use strict'; | |
| const crypto = require('crypto'); | |
| const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
| const IV_LENGTH = 16; // For AES, this is always 16 | |
| function encrypt(text) { | |
| let iv = crypto.randomBytes(IV_LENGTH); | |
| let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
alter table rfd_fms.worklog modify (content varchar2(400));
alter table rfd_fms.pixiu_codcheck add flag number(1) default 0 not null;
comment on column rfd_fms.pixiu_codcheck.flag is '标识, 0:妥投 1:全单';
alter table formula_details modify val1 decimal(15,10);
ALTER TABLE user CHANGE name newname CHAR(32) NOT NULL DEFAULT '123';
| { | |
| "emojis": [ | |
| {"emoji": "👩👩👧👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""}, | |
| {"emoji": "👩👩👧👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""}, | |
| {"emoji": "👩👩👦👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""}, | |
| {"emoji": "👨👩👧👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""}, | |
| {"emoji": "👨👩👧👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""}, | |
| {"emoji": "👨👩👦👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw |
| $('#upload_btn').on('click', function() { | |
| var uploadFile = $('#upload_categories').val(); | |
| if (!uploadFile) { | |
| alertify.log('请先选择文件!', 'error', 0); | |
| return; | |
| } | |
| var fileName = uploadFile.substr(uploadFile.lastIndexOf('\\')+1); | |
| var ary = ['xls', 'xlsx']; | |
| var suffix = uploadFile.split('.').pop().toLowerCase(); |