-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,172 additions
and
321 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.sqlx/query-04c6fd4a25005469a8342fe751db0302f8ff81b7046efaa73c0d2433e1867780.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
.sqlx/query-730013736b62e29d934e1c320b3e028e5b5f57e0486177ae63aa2ec266d329c9.json
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
.sqlx/query-8528499bf3e9b68a051e0e68660ad0a3a1d35b555715e7c720959c73b569d129.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
.sqlx/query-99e4e108d554390e9b6d96270cfbc29710601746acb3b6e4e085a9019dfa85aa.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
.sqlx/query-9f23e7ec362c786e9524941bf385fa4d940951bf20555d77e727b523074f33ae.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
.sqlx/query-f64d0b807474d82210944a5004eaf1656ed5ddfe52f1c0c3185b6d35112d5b39.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
crates/iceberg-catalog/migrations/20241006083546_projects-table.sql
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,16 @@ | ||
-- Factors project into a separate table. | ||
-- Previously projects where nameless and only existed as part of a warehouse. | ||
create table project | ||
( | ||
project_id uuid primary key, | ||
project_name text not null | ||
); | ||
|
||
call add_time_columns('project'); | ||
select trigger_updated_at('"project"'); | ||
|
||
INSERT INTO project (project_id, project_name) | ||
SELECT warehouse.project_id, 'Unnamed Project' FROM warehouse; | ||
|
||
alter table warehouse | ||
add constraint warehouse_project_id_fk foreign key (project_id) references project (project_id) on update cascade; |
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
Oops, something went wrong.