forked from geolba/tethys.backend
Arno Kaimbacher
4714dfdd94
- npm normal updates - add all xslt and style asstes in extra folder public/assets2 - linting corrections - delete local .env.test from git tracking: git rm --cached .env.test - add .env.test into .gitignore file - add edit functionality for editing by submitter - npm updates -added xslt3 packeage for builfing sef files - added Language.ts class vor language table - added version to datasetxml2oai-pmh.xslt
29 lines
853 B
TypeScript
29 lines
853 B
TypeScript
import BaseSchema from '@ioc:Adonis/Lucid/Schema';
|
|
|
|
export default class DocumentXmlCache extends BaseSchema {
|
|
protected tableName = 'document_xml_cache';
|
|
|
|
public async up() {
|
|
this.schema.createTable(this.tableName, (table) => {
|
|
table.increments('document_id').primary();
|
|
table.integer('xml_version').notNullable();
|
|
table.string('server_date_modified', 50);
|
|
table.text('xml_data');
|
|
});
|
|
}
|
|
|
|
public async down() {
|
|
this.schema.dropTable(this.tableName);
|
|
}
|
|
}
|
|
|
|
// -- Table: document_xml_cache
|
|
// CREATE TABLE IF NOT EXISTS document_xml_cache
|
|
// (
|
|
// document_id integer NOT NULL,
|
|
// xml_version integer NOT NULL,
|
|
// server_date_modified character varying(50),
|
|
// xml_data text,
|
|
// CONSTRAINT document_xml_cache_pkey PRIMARY KEY (document_id)
|
|
// )
|