@super-aurora/schema-to-sql
Version:
Generates SQL statements from JSON Schema. If previous version is available compares with the previous version and generates the DDL statements.
15 lines (14 loc) • 472 B
JavaScript
const SCHEMA_OPERATIONS = {
MODEL_DROPPED: 'model-dropped',
MODEL_ADDED: 'model-added',
MODEL_NAME_CHANGED: 'model-name-changed',
ATTRIBUTE_DROPPED: 'attribute-dropped',
ATTRIBUTE_ADDED: 'attribute-added',
ATTRIBUTE_NAME_CHANGED: 'attribute-name-changed',
ATTRIBUTE_IS_NULL_CHANGED: 'attribute-is-null-changed',
ATTRIBUTE_MODIFIED: 'attribute-modified',
UNIQUE_CONSTRAINTS_CHANGED: 'unique-constraints-changed'
}
module.exports = {
SCHEMA_OPERATIONS
}