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 end_of_line = lf
insert_final_newline = true insert_final_newline = true
[.buildkite/hooks/**] [{.buildkite/hooks/**,*.sh,*.yml,*.yaml}]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
[*.{sh,yml,yaml}] [{web/**,*.sql}]
indent_style = space
indent_size = 2
[web/**]
indent_style = space indent_style = space
[{web/package.json,web/pnpm-lock.yaml}] [{web/package.json,web/pnpm-lock.yaml}]

View File

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

View File

@ -2,9 +2,9 @@ CREATE TABLE oauth2_consent_preconfiguration (
id SERIAL, id SERIAL,
client_id VARCHAR(255) NOT NULL, client_id VARCHAR(255) NOT NULL,
subject CHAR(36) 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, 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, scopes TEXT NOT NULL,
audience TEXT NULL, audience TEXT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),

View File

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

View File

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