This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/migrations/003-users-unique.sql

10 lines
190 B
MySQL
Raw Permalink Normal View History

-- Up
CREATE UNIQUE INDEX "users_username" ON "users" ("username");
CREATE UNIQUE INDEX "users_email" ON "users" ("email");
-- Down
DROP INDEX "users_email";
DROP INDEX "users_username";