· 8 years ago · Aug 04, 2018, 08:22 PM
1-- Deploy [% project %]:[% change %] to [% engine %]
2[% FOREACH item IN requires -%]
3-- requires: [% item %]
4[% END -%]
5[% FOREACH item IN conflicts -%]
6-- conflicts: [% item %]
7[% END -%]
8
9BEGIN;
10
11 create table if not exists [% schema %].[% table %] (
12[% FOREACH col IN column -%]
13 [% col %] [% type.item( loop.index ) or 'text' %] not null[% loop.last ? '' : ',' %]
14[% END -%]
15 );
16
17COMMIT;