0024_fix_warn_timestamp.up.sql 272 B

1234567
  1. -- Change lastWarnUpdate from DATETIME to INTEGER (Unix timestamp)
  2. -- The old data is corrupted (Go string representation), so we'll drop and recreate
  3. ALTER TABLE users DROP COLUMN lastWarnUpdate;
  4. ALTER TABLE users ADD COLUMN lastWarnUpdate INTEGER NOT NULL DEFAULT 0;