refactor: sql formatting (#4371)

* refactor: sql spacing

* refactor editor config
pull/4373/head
James Elliott 2022-11-14 12:54:30 +11:00 committed by GitHub
parent 51045fd3fa
commit 36dbc96b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 16 deletions

View File

@ -7,15 +7,11 @@ trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
[.buildkite/hooks/**]
[{.buildkite/hooks/**,*.sh,*.yml,*.yaml}]
indent_style = space
indent_size = 2
[*.{sh,yml,yaml}]
indent_style = space
indent_size = 2
[web/**]
[{web/**,*.sql}]
indent_style = space
[{web/package.json,web/pnpm-lock.yaml}]

View File

@ -2,9 +2,9 @@ CREATE TABLE oauth2_consent_preconfiguration (
id INTEGER AUTO_INCREMENT,
client_id VARCHAR(255) NOT NULL,
subject CHAR(36) NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
expires_at TIMESTAMP NULL DEFAULT NULL,
revoked BOOLEAN NOT NULL DEFAULT FALSE,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
expires_at TIMESTAMP NULL DEFAULT NULL,
revoked BOOLEAN NOT NULL DEFAULT FALSE,
scopes TEXT NOT NULL,
audience TEXT NULL,
PRIMARY KEY (id),

View File

@ -2,9 +2,9 @@ CREATE TABLE oauth2_consent_preconfiguration (
id SERIAL,
client_id VARCHAR(255) NOT NULL,
subject CHAR(36) NOT NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
expires_at TIMESTAMP WITH TIME ZONE NULL DEFAULT NULL,
revoked BOOLEAN NOT NULL DEFAULT FALSE,
revoked BOOLEAN NOT NULL DEFAULT FALSE,
scopes TEXT NOT NULL,
audience TEXT NULL,
PRIMARY KEY (id),

View File

@ -19,8 +19,8 @@ CREATE TABLE oauth2_consent_session (
form_data TEXT NOT NULL,
requested_scopes TEXT NOT NULL,
granted_scopes TEXT NOT NULL,
requested_audience TEXT NULL DEFAULT '',
granted_audience TEXT NULL DEFAULT '',
requested_audience TEXT NULL DEFAULT '',
granted_audience TEXT NULL DEFAULT '',
PRIMARY KEY (id),
CONSTRAINT oauth2_consent_session_subject_fkey
FOREIGN KEY(subject)

View File

@ -2,9 +2,9 @@ CREATE TABLE oauth2_consent_preconfiguration (
id INTEGER,
client_id VARCHAR(255) NOT NULL,
subject CHAR(36) NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
expires_at TIMESTAMP NULL DEFAULT NULL,
revoked BOOLEAN NOT NULL DEFAULT FALSE,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
expires_at TIMESTAMP NULL DEFAULT NULL,
revoked BOOLEAN NOT NULL DEFAULT FALSE,
scopes TEXT NOT NULL,
audience TEXT NULL,
PRIMARY KEY (id),