User:Legoktm/LoadExtensionSchemaUpdates

Proposal 2

edit
{
	"SchemaUpdates": {
		"mysql": {
			"tables": {
			    "linter": "sql/linter.sql"
			},
			"updates": [
				[ "addExtensionField", "linter", "linter_foo", "sql/patch-linter_foo.sql" ]
			]
		},
		"sqlite": {
			"tables": {
			    "linter": "sql/linter.sql"
			},
			"updates": [
				[ "addExtensionField", "linter", "linter_foo", "sql/patch-linter_foo.sql" ]
			]
		},
		"postgres": {
			"tables": {
			    "linter": "sql/linter.postgres.sql"
			},
			"updates": [
				[ "addExtensionField", "linter", "linter_foo", "sql/patch-linter_foo.postgres.sql" ]
			]
		}
	}
}
{
	"AbstractSchemaUpdates": {
		"tables": {
		    "linter": "schema/linter.json"
		},
		"updates": [
			[ "addExtensionField", "linter", "linter_foo", "schema/patch-linter_foo.json" ]
		]
	}
}

Proposal 1

edit
{
	"SchemaUpdates": {
		"mysql": {
			"schema": "sql/linter.sql",
			"updates": [
				[ "addExtensionField", "linter", "linter_foo", "sql/patch-linter_foo.sql" ]
			]
		},
		"sqlite": {
			"schema": "sql/linter.sql",
			"updates": [
				[ "addExtensionField", "linter", "linter_foo", "sql/patch-linter_foo.sql" ]
			]
		},
		"postgres": {
			"schema": "sql/linter.postgres.sql",
			"updates": [
				[ "addExtensionField", "linter", "linter_foo", "sql/patch-linter_foo.postgres.sql" ]
			]
		}
	}
}
{
	"AbstractSchemaUpdates": {
		"schema": "schema/linter.json",
		"updates": [
			[ "addExtensionField", "linter", "linter_foo", "schema/patch-linter_foo.json" ]
		]
	}
}

Proposal 0

edit
{
	"SchemaUpdates": {
		"mysql": [ ... ],
		"sqlite": [ ... ],
		"postgres": [ ... ],
		"abstract": [ ... ]
	}
}
{
	"SchemaUpdates": {
		"mysql": [
			[ "addExtensionTable", "linter", "sql/linter.sql" ]
		],
		"sqlite": [
			[ "addExtensionTable", "linter", "sql/linter.sql" ]
		]
	}
}