<field reporter:label="Code" name="code" reporter:datatype="text" />
<field reporter:label="Holdings Tag" name="holding_tag" reporter:datatype="text" />
<field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link" />
- <field reporter:label="SAN" name="san" reporter:datatype="int" />
+ <field reporter:label="SAN" name="san" reporter:datatype="text" />
</fields>
<links>
<link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
currency_type TEXT NOT NULL REFERENCES acq.currency_type (code) DEFERRABLE INITIALLY DEFERRED,
code TEXT NOT NULL,
holding_tag TEXT,
- san INT,
+ san TEXT,
CONSTRAINT provider_name_once_per_owner UNIQUE (name,owner),
CONSTRAINT code_once_per_owner UNIQUE (code, owner)
);
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0062');
+
+ALTER TABLE acq.provider ALTER COLUMN san TYPE TEXT USING lpad(text(san), 7, '0');
+
+COMMIT;
+