warp-tech / warpgate

Smart SSH, HTTPS and MySQL bastion that requires no additional client-side software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database migration does not work with PostgreSQL

vlaborie opened this issue · comments

Hello,

2024-04-16 23:27:44.837 CEST [277613] warpgate@warpgate ERROR:  syntax error at or near "`" at character 13
2024-04-16 23:27:44.837 CEST [277613] warpgate@warpgate STATEMENT:  ALTER TABLE `tickets` MODIFY COLUMN `expiry` TIMESTAMP NULL DEFAULT NULL

Caracter ` (backtick) is not supported by PostgreSQL.

This request is hardcoded in warpgate-db-migrations/src/m00001_create_ticket.rs but is not compatible with PostgreSQL.