Need validation lengths for Flyway

This commit is contained in:
2026-06-01 19:14:10 -06:00
parent b972f51207
commit f6bae75b07

View File

@@ -0,0 +1,16 @@
/*
* V2__enforce_validation_lengths.sql
*
* Aligns persisted column lengths with the Phase 6 API validation contract.
* Flyway applies this after the initial schema so existing local databases can
* migrate forward without rewriting the original migration checksum.
*/
ALTER TABLE users
ALTER COLUMN username TYPE VARCHAR(50);
ALTER TABLE notes
ALTER COLUMN title TYPE VARCHAR(200);
ALTER TABLE notes
ALTER COLUMN content TYPE VARCHAR(10000);