Skip to content

Commit

Permalink
Change buckets meta_id foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jan 4, 2024
1 parent a58b61e commit 67a1ae3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/schemas/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CREATE TABLE site (
CREATE TABLE buckets (
bucket_id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
bucket VARCHAR(255) NOT NULL UNIQUE,
meta_id VARCHAR(255),
meta_id BIGINT REFERENCES metadata(meta_id) ON UPDATE CASCADE,
dataset_id BIGINT REFERENCES datasets(dataset_id) ON UPDATE CASCADE,
create_at INTEGER,
create_by VARCHAR(255),
Expand Down
2 changes: 1 addition & 1 deletion web/schemas/sqlite.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ create TABLE sites (
create TABLE buckets (
bucket_id INTEGER PRIMARY KEY AUTOINCREMENT,
bucket VARCHAR(255) NOT NULL UNIQUE,
meta_id VARCHAR(255),
meta_id BIGINT REFERENCES metadata(meta_id) ON UPDATE CASCADE,
dataset_id INTEGER REFERENCES datasets(dataset_id) ON UPDATE CASCADE,
create_at INTEGER,
create_by VARCHAR(255),
Expand Down

0 comments on commit 67a1ae3

Please sign in to comment.