WiIIiam278 / HuskSync

A modern, cross-server player data synchronisation system
https://william278.net/project/husksync
Apache License 2.0
177 stars 131 forks source link

Add createTables Config Option to Disable Automatic DDL Operations #377

Closed TheCodedOne closed 1 month ago

TheCodedOne commented 1 month ago

Summary:

This PR introduces a new configuration option called createTables to the database adapters. This option allows users to toggle whether the database adapters should attempt to run their table creation (DDL) schema files.

Context & Motivation:

In certain production environments, database servers are configured to disable Data Definition Language (DDL) modifications, such as table creation, to maintain stability and security. In such cases, automatically running the table creation schema may result in errors or unintended behavior.

To address this, the createTables option provides more flexibility by allowing users to control whether schema creation is attempted during database initialization.

Changes:

Usage:

Testing:

Impact: