zonemaster / zonemaster-backend

The Zonemaster Backend - part of the Zonemaster project
Other
14 stars 23 forks source link

Better database initialization #805

Open mattias-p opened 3 years ago

mattias-p commented 3 years ago

Today the installation instruction prescribes database initialization in different ways for different database engines. For MySQL and PostgreSQL a combination of perl, cd and mysql/psql is used. For SQLite, a combination of perl, cd, install and chown is used. The same approach is used in the section about cleaning up the database.

Today the definitions themselves are located in different places. For MySQL and PostgreSQL the definitions are duplicated across the share/ and script/ directories in the repository. For SQLite the definition is located in the database adapter module.

There is already an issue #689 to deduplicate the database definitions for MySQL and PostgreSQL. This issue goes beyond that.

Requirements:

matsduf commented 2 years ago

@mattias-p, can we close this? #834 and #804 refers to this.