This repository contains the database schema and related scripts for File-Integrity-Scanner.
This PowerShell script initializes the "integrity_hash" PostgreSQL database by creating all required tables and sequences. It also provides an option to insert mock test data for development or testing purposes.
-
Set Environment Variables
Ensure the following environment variables are set with appropriate values:INTEGRITY_HASH_DB_USERINTEGRITY_HASH_DB_PASSWORD
-
Run the Script
.\create_all_tables.ps1 [-InsertTestData $true]
- Use the
-InsertTestDataswitch if you want to insert mock data after creating the tables.
- Use the
This PowerShell script resets the "integrity_hash" PostgreSQL database by dropping all tables after verifying that the required environment variables are set.
.\drop_all_tables.ps1Ensure INTEGRITY_HASH_DB_USER and INTEGRITY_HASH_DB_PASSWORD environment variables are set before running the script.
PostgreSQL 17.5 (documentation)
Please visit our discussion forum for project-related documentation and discussions: Project Discussion Forum

