Skip to content

Commit

Permalink
fix more sql field
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Mar 28, 2024
1 parent e96c898 commit 3a35282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (db *SqlDB) setupSubscribeQuestionMark(ctx context.Context) (err error) {
" `endpoint` VARCHAR(255) NOT NULL," +
" `keys` VARCHAR(255) NOT NULL," +
" `scopes` INTEGER NOT NULL," +
" `report_at` CHAR(5) NOT NULL," +
" `report_at` CHAR(5) DEFAULT '00:00' NOT NULL," +
" `last_reported` TIMESTAMP DEFAULT NULL," +
" PRIMARY KEY (`user`,`client`)" +
")"
Expand Down Expand Up @@ -549,7 +549,7 @@ func (db *SqlDB) setupSubscribeDollarMark(ctx context.Context) (err error) {
" endpoint VARCHAR(255) NOT NULL," +
" keys VARCHAR(255) NOT NULL," +
" scopes INTEGER NOT NULL," +
" report_at CHAR(5) NOT NULL," +
" report_at CHAR(5) DEFAULT '00:00' NOT NULL," +
" last_reported TIMESTAMP DEFAULT NULL," +
` PRIMARY KEY ("user",client)` +
")"
Expand Down

0 comments on commit 3a35282

Please sign in to comment.