-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migate tests to fit new Postgres system
- Loading branch information
Showing
33 changed files
with
7,532 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
CREATE DATABASE router; | ||
\c router; | ||
|
||
CREATE TABLE backends ( | ||
id SERIAL PRIMARY KEY, | ||
backend_id VARCHAR, | ||
backend_url VARCHAR, | ||
created_at TIMESTAMP NOT NULL, | ||
updated_at TIMESTAMP NOT NULL | ||
); | ||
CREATE UNIQUE INDEX index_backends_on_backend_id ON backends (backend_id); | ||
|
||
CREATE TABLE routes ( | ||
id SERIAL PRIMARY KEY, | ||
incoming_path VARCHAR, | ||
route_type VARCHAR, | ||
handler VARCHAR, | ||
disabled BOOLEAN DEFAULT false, | ||
backend_id VARCHAR, | ||
redirect_to VARCHAR, | ||
redirect_type VARCHAR, | ||
segments_mode VARCHAR, | ||
created_at TIMESTAMP NOT NULL, | ||
updated_at TIMESTAMP NOT NULL | ||
); | ||
CREATE UNIQUE INDEX index_routes_on_incoming_path ON routes (incoming_path); | ||
|
||
CREATE TABLE users ( | ||
id SERIAL PRIMARY KEY, | ||
name VARCHAR, | ||
email VARCHAR, | ||
uid VARCHAR, | ||
organisation_slug VARCHAR, | ||
organisation_content_id VARCHAR, | ||
app_name VARCHAR, | ||
permissions TEXT, | ||
remotely_signed_out BOOLEAN DEFAULT false, | ||
disabled BOOLEAN DEFAULT false, | ||
created_at TIMESTAMP NOT NULL, | ||
updated_at TIMESTAMP NOT NULL | ||
); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.