File: 9_dbmigrate.sql

package info (click to toggle)
kraft 0.45-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,732 kB
  • sloc: cpp: 23,458; sql: 1,171; python: 623; xml: 105; sh: 3; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- Columns already added in 4_dbmigrate.sql   *sqlite workaround*
-- message add a document type id to text table
--alter table DocTexts add column docTypeId int; -- AFTER docType; 

-- message populate the doc type id column in docTexts
update DocTexts set docTypeId=(SELECT docTypeID FROM DocTypes WHERE name=docType); 

-- Columns already added in create_schema.sql   *sqlite workaround*
-- message create a type column for the docposition 
--alter table docposition add column postype VARCHAR(64); --  AFTER text;

-- message create type column for the archdocpos table
--alter table archdocpos add column postype VARCHAR(64); --  AFTER kind;