- add all migration files for database
- npm updates
This commit is contained in:
parent
8a404e8a0c
commit
4abcfe7135
29 changed files with 1540 additions and 375 deletions
33
database/migrations/lookup_3_document_xml_cache.ts
Normal file
33
database/migrations/lookup_3_document_xml_cache.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
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)
|
||||
// )
|
||||
// ALTER TABLE IF EXISTS document_xml_cache
|
||||
// OWNER to tethys_admin;
|
||||
// REVOKE ALL ON TABLE document_xml_cache FROM tethys_app;
|
||||
// GRANT ALL ON TABLE document_xml_cache TO tethys_admin;
|
||||
// GRANT DELETE, UPDATE, INSERT, SELECT ON TABLE document_xml_cache TO tethys_app;
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue