摘要:
ERROR: type "enum_xxx_status" already exist reason: Dropping an enum column does not drop the enum itself. Postgre issue https://github.com/sequelize/ 阅读全文
摘要:
1.查找特定字符的上下文 grep -A 2 -B 1 'str' file 2.查看cat more less tail head cat:命令可以一次显示整个文件,如果文件比较大,使用不是很方便;more:命令可以让屏幕在显示满一屏幕时暂停,按空格往前翻页,按b往后翻页。less:命令也可以分页 阅读全文
摘要:
1. login remote server without password ssh-copy-id name@server.com 2.generate ssh key on server ssh-keygen - t rsa 3. copy the server ssh key to the 阅读全文
摘要:
use function date_trunc sql: SELECT date_trunc('day',"createdAt") FROM "IAPRecords" WHERE "IAPRecords"."UserId" = 1 GROUP BY date_trunc('day',"created 阅读全文