Skip to content

Commit

Permalink
Fix queries
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Nov 23, 2024
1 parent 5ced2e3 commit 645405f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Common/Migrations/20241122214013_Fix Petrainer998DR RFIDs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(
$"""
UPDATE [shockers] AS [shocker]
UPDATE shockers
SET
[shocker.rf_id] = (([shocker.rf_id])::bit(32) << 1)::integer
rf_id = ((rf_id)::bit(32) << 1)::integer
WHERE
[shocker.model] = 'petrainer998DR'
model = 'petrainer998DR'
"""
);
}
Expand All @@ -26,11 +26,11 @@ protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(
$"""
UPDATE [shockers] AS [shocker]
UPDATE shockers
SET
[shocker.rf_id] = (([shocker.rf_id])::bit(32) >> 1)::integer
rf_id = ((rf_id)::bit(32) >> 1)::integer
WHERE
[shocker.model] = 'petrainer998DR'
model = 'petrainer998DR'
"""
);
}
Expand Down

0 comments on commit 645405f

Please sign in to comment.