You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor migration from one database version to another. The changes should be determined by comparing the actual database with the schema.js file. Any changes found should be applied to the database to reflect the new version.
Supported operations:
CREATE TABLE
DROP TABLE
ALTER TABLE
ADD COLUMN
DROP COLUMN
MODIFY COLUMN
Table and column renaming needs some investigation on how to do this.
The same mechanism could be used to generate tables for Apps. An App has to provide its own schema.js file and whenever a new App is activated the database is updated with the new instructions from schema.js.
The text was updated successfully, but these errors were encountered:
closesTryGhost#1398closesTryGhost#1399closesTryGhost#1400
- added schema.js with database version '000'
- refactored migration to use schema.js
- if new table is added to schema.js and databaseVersion is increased, table will be added
- if new table is deleted to schema.js and databaseVersion is increased, table will be deleted
- alter table from issue TryGhost#1400 is delayed until knex supports column modification
- changed import pre checks to work again (will be refactored separately)
- added basic PostgreSQL support (Attention: not supported/tested)
- changed error handling in server.js
depends on #1398 (Create schema.js)
Refactor migration from one database version to another. The changes should be determined by comparing the actual database with the schema.js file. Any changes found should be applied to the database to reflect the new version.
Supported operations:
Table and column renaming needs some investigation on how to do this.
The same mechanism could be used to generate tables for Apps. An App has to provide its own schema.js file and whenever a new App is activated the database is updated with the new instructions from schema.js.
The text was updated successfully, but these errors were encountered: