hi,
I use this CustomSiteConfig.php
<?php
class CustomSiteConfig extends DataExtension {
static $db = array(
'FooterContent' => 'HTMLText'
);
public function updateCMSFields(FieldList $fields) {
$fields->addFieldToTab("Root.Main", new HTMLEditorField("FooterContent", "Footer Content"));
}
}
Then on /dev/build:
[User Error] Couldn't run query: SELECT DISTINCT "SiteConfig"."ClassName", "SiteConfig"."Created", "SiteConfig"."LastEdited", "SiteConfig"."Locale", "SiteConfig"."Title", "SiteConfig"."Tagline", "SiteConfig"."Theme", "SiteConfig"."CanViewType", "SiteConfig"."CanEditType", "SiteConfig"."CanCreateTopLevelType", "SiteConfig"."FooterContent", "SiteConfig"."ID", CASE WHEN "SiteConfig"."ClassName" IS NOT NULL THEN "SiteConfig"."ClassName" ELSE 'SiteConfig' END AS "RecordClassName" FROM "SiteConfig" WHERE ("Locale" = 'de_DE') LIMIT 1 Unknown column 'SiteConfig.FooterContent' in 'field list'
Whats wrong here?
Object::add_extension('SiteConfig', 'CustomSiteConfig');
in _config.php is set.
Shouldnt /dev/build create the new Column? The new column conatins in the query, thats wrong.
If I create the column before runing /dev/build no errors occure.