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.
12 lines
280 B
SQL
12 lines
280 B
SQL
create table if not exists label
|
|
(
|
|
id bigserial
|
|
primary key,
|
|
project_uuid uuid not null,
|
|
name varchar(255) not null,
|
|
color varchar(255) not null
|
|
);
|
|
|
|
create index if not exists idx_label_project
|
|
on label (project_uuid);
|