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.
11 lines
373 B
SQL
11 lines
373 B
SQL
create table if not exists repo_lock
|
|
(
|
|
repo_uuid uuid not null,
|
|
path varchar(255) not null,
|
|
lock_type varchar(255) not null,
|
|
locked_by uuid not null,
|
|
acquired_at timestamp with time zone not null,
|
|
released_at timestamp with time zone,
|
|
primary key (repo_uuid, path)
|
|
);
|