Skip to content

chore(db): update database backup with new logical file names#5342

Merged
randywoods merged 2 commits intodevelopfrom
chore/update-database-backup
Feb 3, 2026
Merged

chore(db): update database backup with new logical file names#5342
randywoods merged 2 commits intodevelopfrom
chore/update-database-backup

Conversation

@itsmostafa
Copy link
Collaborator

Summary

Updates the CSET database backup files and restore script to use standardized logical file names, aligning with the database naming convention used throughout the project.

Changes

  • Updated restoredb.sql to use CSET and CSET_log logical file names instead of legacy CSETWeb and CSETWeb_Log names
  • Consolidated database backup from 4 parts to 2 parts (reduced overall file size)
  • Removed obsolete backup file parts (CSET.bak.part_ac, CSET.bak.part_ad)

Breaking Changes

None - This change only affects the development database restore process. Existing databases are not impacted.

Test Plan

  • Run task launch:db to start SQL Server container
  • Run task load-bak to restore the database backup
  • Verify database restores successfully with the new logical file names
  • Run task sql:query -- "SELECT name FROM sys.databases WHERE name = 'CSET'" to confirm database exists

Related Issues

N/A

Release Notes

Updated database backup files and restore script to use standardized CSET naming convention.

Checklist

  • Database restore tested locally
  • Conventional commit format followed
  • Documentation updated (if needed)

Update the CSET database backup files and restore script:
- Update restoredb.sql to use 'CSET' and 'CSET_log' logical file names
  instead of 'CSETWeb' and 'CSETWeb_Log'
- Consolidate backup from 4 parts to 2 parts (reduced file size)
- Remove obsolete backup file parts (part_ac, part_ad)

This aligns with the database naming standardization to use CSET
consistently throughout the project.
- Rename task names to use colon convention for consistency
  (split-bak → split:bak, create-bak → create:bak, load-bak → load:bak)
- Fix sqlcmd path from mssql-tools18 to mssql-tools for compatibility
  with the SQL Server container image
- Update sql:query command quoting
@randywoods randywoods merged commit 8932405 into develop Feb 3, 2026
6 checks passed
@randywoods randywoods deleted the chore/update-database-backup branch February 3, 2026 17:39
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.

2 participants