Skip to content

Commit 33e8ebf

Browse files
committed
namespace the migrations under the pgml schema
1 parent c0d7a93 commit 33e8ebf

6 files changed

+192
-192
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-- Add down migration script here
2-
DROP TABLE notebook_cells;
3-
DROP TABLE notebooks;
2+
DROP TABLE pgml.notebook_cells;
3+
DROP TABLE pgml.notebooks;

pgml-dashboard/migrations/20221125201109_notebook.up.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
-- Add up migration script here
2-
CREATE TABLE notebooks (
2+
CREATE TABLE pgml.notebooks (
33
id BIGSERIAL PRIMARY KEY,
44
name VARCHAR NOT NULL,
55
created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT NOW(),
66
updated_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT NOW()
77
);
88

9-
CREATE TABLE notebook_cells (
9+
CREATE TABLE pgml.notebook_cells (
1010
id BIGSERIAL PRIMARY KEY,
11-
notebook_id BIGINT NOT NULL REFERENCES notebooks(id),
11+
notebook_id BIGINT NOT NULL REFERENCES pgml.notebooks(id),
1212
cell_type INT NOT NULL,
1313
cell_number INT NOT NULL,
1414
version INT NOT NULL,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-- Add down migration script here
2-
TRUNCATE notebook_cells CASCADE;
3-
TRUNCATE notebooks CASCADE;
2+
TRUNCATE pgml.notebook_cells CASCADE;
3+
TRUNCATE pgml.notebooks CASCADE;

pgml-dashboard/migrations/20221129170843_notebooks_data.up.sql

Lines changed: 183 additions & 183 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
-- Add down migration script here
2-
DROP TABLE uploaded_files;
2+
DROP TABLE pgml.uploaded_files;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- Add up migration script here
22
-- Add up migration script here
3-
CREATE TABLE uploaded_files (
3+
CREATE TABLE pgml.uploaded_files (
44
id BIGSERIAL PRIMARY KEY,
55
created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT NOW()
66
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy