Need validation lengths for Flyway
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user