Remove the longDescription field
It's not useful and takes up a lot of space.
This commit is contained in:
parent
f4acc9a522
commit
9b38b5f134
|
@ -120,7 +120,6 @@ static void findJobsWrapped(EvalState & state, JSONObject & top,
|
|||
res.attr("system", drv.system);
|
||||
res.attr("drvPath", drvPath = drv.queryDrvPath());
|
||||
res.attr("description", drv.queryMetaString("description"));
|
||||
res.attr("longDescription", drv.queryMetaString("longDescription"));
|
||||
res.attr("license", queryMetaStrings(state, drv, "license"));
|
||||
res.attr("homepage", drv.queryMetaString("homepage"));
|
||||
res.attr("maintainers", queryMetaStrings(state, drv, "maintainers"));
|
||||
|
|
|
@ -531,7 +531,6 @@ sub checkBuild {
|
|||
$build = $job->builds->create(
|
||||
{ timestamp => $time
|
||||
, description => $buildInfo->{description}
|
||||
, longdescription => $buildInfo->{longDescription}
|
||||
, license => $buildInfo->{license}
|
||||
, homepage => $buildInfo->{homepage}
|
||||
, maintainers => $buildInfo->{maintainers}
|
||||
|
|
|
@ -89,11 +89,6 @@ __PACKAGE__->table("Builds");
|
|||
data_type: 'text'
|
||||
is_nullable: 0
|
||||
|
||||
=head2 longdescription
|
||||
|
||||
data_type: 'text'
|
||||
is_nullable: 1
|
||||
|
||||
=head2 license
|
||||
|
||||
data_type: 'text'
|
||||
|
@ -228,8 +223,6 @@ __PACKAGE__->add_columns(
|
|||
{ data_type => "text", is_nullable => 0 },
|
||||
"system",
|
||||
{ data_type => "text", is_nullable => 0 },
|
||||
"longdescription",
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"license",
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"homepage",
|
||||
|
@ -527,8 +520,8 @@ __PACKAGE__->many_to_many(
|
|||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-08-15 00:20:01
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U1j/qm0vslb6Jvgu5mGMtw
|
||||
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2014-09-30 15:38:03
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kMPje7yi/yDqxGRQcC2I/Q
|
||||
|
||||
__PACKAGE__->has_many(
|
||||
"dependents",
|
||||
|
|
|
@ -72,8 +72,6 @@ EOF
|
|||
$res .= " meta = {\n";
|
||||
$res .= " description = ${\escape $build->description};\n"
|
||||
if $build->description;
|
||||
$res .= " longDescription = ${\escape $build->longdescription};\n"
|
||||
if $build->longdescription;
|
||||
$res .= " license = ${\escape $build->license};\n"
|
||||
if $build->license;
|
||||
$res .= " maintainers = ${\escape $build->maintainers};\n"
|
||||
|
|
|
@ -299,10 +299,6 @@
|
|||
<th>Short description:</th>
|
||||
<td>[% IF build.description %][% HTML.escape(build.description) %][% ELSE %]<em>not given</em>[% END %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Long description:</th>
|
||||
<td>[% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %]<em>not given</em>[% END %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>License:</th>
|
||||
<td>[% IF build.license %][% HTML.escape(build.license) %][% ELSE %]<em>not given</em>[% END %]</td>
|
||||
|
|
|
@ -120,7 +120,6 @@ symbol/thunk pairs."
|
|||
(string-join (map loop l)))
|
||||
(_ ""))))
|
||||
,@(opt-attr 'description 'description)
|
||||
,@(opt-attr 'longDescription 'long-description)
|
||||
(maintainers
|
||||
,(string-join (or (assoc-ref result 'maintainers)
|
||||
'())
|
||||
|
|
|
@ -142,7 +142,6 @@ create table Builds (
|
|||
drvPath text not null,
|
||||
system text not null,
|
||||
|
||||
longDescription text, -- meta.longDescription
|
||||
license text, -- meta.license
|
||||
homepage text, -- meta.homepage
|
||||
maintainers text, -- meta.maintainers (concatenated, comma-separated)
|
||||
|
|
1
src/sql/upgrade-31.sql
Normal file
1
src/sql/upgrade-31.sql
Normal file
|
@ -0,0 +1 @@
|
|||
alter table Builds drop column longDescription;
|
Loading…
Reference in a new issue