Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-48413: Adopt TEXT column types where useful #89

Merged
merged 5 commits into from
Jan 15, 2025
Merged

Conversation

jonathansick
Copy link
Member

@jonathansick jonathansick commented Jan 14, 2025

Migrate the database to use TEXT column types where previously we used VARCHAR columns with a (now unnecessary) length limit. This change requires a database migration on deployment. In Postgres there is no functional or performance difference between VARCHAR and TEXT columns. This change simplifies the database schema and reduces the risk of future issues with column length limits.

In Postgres there is no functional or performance difference between
VARCHAR and TEXT columns. Therefore we're removing arbitrary constraints
on many string columns by migrating to TEXT column types. This both lets
us test database migrations and also prevents future issues where a
column needs to have strings longer than the arbitrarily-set column type
provides.
The steps for Times Square are slightly different from the generic Safir
docs, so we'll provide the exact copy-and-pastable steps here.
jonathansick added a commit to lsst-sqre/phalanx that referenced this pull request Jan 14, 2025
This enables the update schema job on idfdev for Times Square.

See Times Square PR: lsst-sqre/times-square#89
@jonathansick jonathansick marked this pull request as ready for review January 15, 2025 20:14
@jonathansick jonathansick merged commit 02fb470 into main Jan 15, 2025
4 checks passed
@jonathansick jonathansick deleted the tickets/DM-48413 branch January 15, 2025 20:25
jonathansick added a commit to lsst-sqre/phalanx that referenced this pull request Jan 16, 2025
This enables the update schema job on idfdev for Times Square.

See Times Square PR: lsst-sqre/times-square#89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant