You've already forked AstralRinth
forked from didirus/AstralRinth
* Minos push (#589) * moving to other computer * working redirection * incomplete pat setup * no more errors * new migrations * fixed bugs; added user check * pats * resized pats * removed testing callback * lowered kratos_id size * metadata support * google not working * refactoring * restructured github_id * kratos-id optional, legacy accounts connect * default picture * merge mistake * clippy * sqlx-data.json * env vars, clippy * merge error * scopes into an i64, name * requested changes * removed banning * partial completion of github flow * revision --------- Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
16
migrations/20230502141522_minos-support.sql
Normal file
16
migrations/20230502141522_minos-support.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- No longer have banned users in Labrinth
|
||||
DROP TABLE banned_users;
|
||||
|
||||
-- Initialize kratos_id
|
||||
ALTER TABLE users ADD COLUMN kratos_id varchar(40) UNIQUE;
|
||||
|
||||
-- Add pats table
|
||||
CREATE TABLE pats (
|
||||
id BIGINT PRIMARY KEY,
|
||||
name VARCHAR(255),
|
||||
user_id BIGINT NOT NULL REFERENCES users(id),
|
||||
access_token VARCHAR(64) NOT NULL,
|
||||
scope BIGINT NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
expires_at TIMESTAMP NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user