Replace individual Rust migration modules with a define_sql_migrations macro that reads up/down SQL files via include_str!. Consolidate all legacy single-file SQL into per-table directories and add full schema migration coverage for 90+ tables.
15 lines
478 B
SQL
15 lines
478 B
SQL
create table if not exists repo_branch
|
|
(
|
|
repo uuid not null,
|
|
name varchar(255) not null,
|
|
oid varchar(255) not null,
|
|
upstream varchar(255),
|
|
head boolean default false not null,
|
|
created_at timestamp with time zone not null,
|
|
updated_at timestamp with time zone not null,
|
|
primary key (repo, name)
|
|
);
|
|
|
|
create index if not exists idx_repo_branch_repo
|
|
on repo_branch (repo);
|