Dataset Viewer
Auto-converted to Parquet Duplicate
data_loss
bool
2 classes
expected_tier
stringclasses
4 values
hazard
stringclasses
10 values
id
stringlengths
14
14
old_schema
stringlengths
108
189
prompt
stringlengths
844
924
requires_expand_contract
bool
2 classes
target_schema
stringlengths
108
187
true
CRITICAL
drop_column
heros-mig-0001
TABLE entity_07961 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_07961 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0002
TABLE entity_15880 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_15880_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_15880 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0003
TABLE entity_23799 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_23799 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0004
TABLE entity_31718 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_31718 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0005
TABLE entity_39637 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_39637 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0006
TABLE entity_47556 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_47556 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0007
TABLE entity_55475 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_55475 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0008
TABLE entity_63394 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_63394 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0009
TABLE entity_71313 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_71313 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0010
TABLE entity_79232 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_79232 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_79232_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0011
TABLE entity_87151 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_87151 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0012
TABLE entity_95070 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_95070_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_95070 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0013
TABLE entity_02989 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_02989 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0014
TABLE entity_10908 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_10908 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0015
TABLE entity_18827 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_18827 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0016
TABLE entity_26746 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_26746 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0017
TABLE entity_34665 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_34665 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0018
TABLE entity_42584 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_42584 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0019
TABLE entity_50503 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_50503 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0020
TABLE entity_58422 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_58422 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_58422_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0021
TABLE entity_66341 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_66341 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0022
TABLE entity_74260 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_74260_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_74260 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0023
TABLE entity_82179 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_82179 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0024
TABLE entity_90098 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_90098 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0025
TABLE entity_98017 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_98017 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0026
TABLE entity_05936 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_05936 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0027
TABLE entity_13855 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_13855 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0028
TABLE entity_21774 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_21774 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0029
TABLE entity_29693 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_29693 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0030
TABLE entity_37612 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_37612 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_37612_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0031
TABLE entity_45531 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_45531 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0032
TABLE entity_53450 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_53450_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_53450 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0033
TABLE entity_61369 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_61369 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0034
TABLE entity_69288 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_69288 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0035
TABLE entity_77207 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_77207 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0036
TABLE entity_85126 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_85126 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0037
TABLE entity_93045 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_93045 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0038
TABLE entity_00964 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_00964 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0039
TABLE entity_08883 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_08883 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0040
TABLE entity_16802 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_16802 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_16802_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0041
TABLE entity_24721 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_24721 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0042
TABLE entity_32640 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_32640_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_32640 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0043
TABLE entity_40559 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_40559 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0044
TABLE entity_48478 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_48478 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0045
TABLE entity_56397 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_56397 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0046
TABLE entity_64316 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_64316 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0047
TABLE entity_72235 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_72235 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0048
TABLE entity_80154 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_80154 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0049
TABLE entity_88073 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_88073 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0050
TABLE entity_95992 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_95992 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_95992_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0051
TABLE entity_03911 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_03911 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0052
TABLE entity_11830 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_11830_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_11830 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0053
TABLE entity_19749 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_19749 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0054
TABLE entity_27668 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_27668 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0055
TABLE entity_35587 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_35587 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0056
TABLE entity_43506 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_43506 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0057
TABLE entity_51425 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_51425 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0058
TABLE entity_59344 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_59344 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0059
TABLE entity_67263 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_67263 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0060
TABLE entity_75182 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_75182 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_75182_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0061
TABLE entity_83101 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_83101 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0062
TABLE entity_91020 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_91020_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_91020 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0063
TABLE entity_98939 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_98939 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0064
TABLE entity_06858 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_06858 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0065
TABLE entity_14777 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_14777 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0066
TABLE entity_22696 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_22696 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0067
TABLE entity_30615 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_30615 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0068
TABLE entity_38534 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_38534 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0069
TABLE entity_46453 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_46453 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0070
TABLE entity_54372 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_54372 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_54372_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0071
TABLE entity_62291 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_62291 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0072
TABLE entity_70210 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_70210_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_70210 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0073
TABLE entity_78129 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_78129 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0074
TABLE entity_86048 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_86048 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0075
TABLE entity_93967 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_93967 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0076
TABLE entity_01886 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_01886 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0077
TABLE entity_09805 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_09805 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0078
TABLE entity_17724 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_17724 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0079
TABLE entity_25643 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_25643 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0080
TABLE entity_33562 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_33562 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_33562_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0081
TABLE entity_41481 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_41481 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0082
TABLE entity_49400 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_49400_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_49400 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0083
TABLE entity_57319 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_57319 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0084
TABLE entity_65238 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_65238 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0085
TABLE entity_73157 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_73157 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0086
TABLE entity_81076 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_81076 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0087
TABLE entity_88995 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_88995 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0088
TABLE entity_96914 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_96914 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0089
TABLE entity_04833 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_04833 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0090
TABLE entity_12752 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_12752 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_12752_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
true
CRITICAL
drop_column
heros-mig-0091
TABLE entity_20671 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN legacy_note text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_20671 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
CRITICAL
drop_table
heros-mig-0092
TABLE entity_28590 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_28590_audit COLUMN id bigint NOT_NULL COLUMN payload text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_28590 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
true
HIGH
type_narrowing
heros-mig-0093
TABLE entity_36509 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_36509 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN amount integer NOT_NULL
false
HIGH
set_not_null
heros-mig-0094
TABLE entity_44428 COLUMN id bigint NOT_NULL COLUMN email text NULLABLE COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_44428 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
HIGH
rename_column
heros-mig-0095
TABLE entity_52347 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN full_name text NULLABLE
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_52347 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN display_name text NULLABLE
false
HIGH
add_primary_key
heros-mig-0096
TABLE entity_60266 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
true
TABLE entity_60266 COLUMN id bigint NOT_NULL PRIMARY_KEY COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
false
SAFE
add_nullable_column
heros-mig-0097
TABLE entity_68185 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_68185 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN bio text NULLABLE
false
NOTABLE
add_default_column
heros-mig-0098
TABLE entity_76104 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_76104 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN status text NOT_NULL DEFAULT
false
SAFE
widen_type
heros-mig-0099
TABLE entity_84023 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total bigint NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_84023 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL COLUMN total numeric NOT_NULL
false
SAFE
create_table
heros-mig-0100
TABLE entity_91942 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL
Respond in exactly this shape: <answer> MIGRATION: -- phase 1: expand <SQL statements> -- phase 2: backfill <SQL statements> -- phase 3: contract <SQL statements> ROLLBACK: <SQL statements> </answer> Rules: - Use PostgreSQL syntax. - Every statement ends with a semicolon. - For destructive or lock-heavy changes, use a...
false
TABLE entity_91942 COLUMN id bigint NOT_NULL COLUMN email text NOT_NULL COLUMN created_at timestamp NOT_NULL TABLE entity_91942_events COLUMN id bigint NOT_NULL COLUMN body text NULLABLE
End of preview. Expand in Data Studio

HEROS-RL Destructive DDL Migration Set

500 deterministic prompts for training a critic-free GRPO policy to rewrite hazardous PostgreSQL changes as expand-and-contract migrations.

  • 10 families × 50 cases.
  • 150 data-loss cases, 300 requiring expand-and-contract.
  • 150 SAFE, 50 NOTABLE, 200 HIGH, 100 CRITICAL.
  • Fields: id, hazard, data_loss, requires_expand_contract, expected_tier, old_schema, target_schema, prompt.

Paper pages: DeepSeekMath · DeepSeek-R1

Generated by scripts/build_dataset.py in HEROS-RL and reproduced byte-for-byte in CI.

Downloads last month
51

Spaces using itssoumyad/heros-migration-500 2

Collection including itssoumyad/heros-migration-500

Papers for itssoumyad/heros-migration-500