diff --git a/apps/front/modules/dmWidget/templates/_dmWidgetGithubListIssues.php b/apps/front/modules/dmWidget/templates/_dmWidgetGithubListIssues.php index 7d0d407..a2ff19c 100644 --- a/apps/front/modules/dmWidget/templates/_dmWidgetGithubListIssues.php +++ b/apps/front/modules/dmWidget/templates/_dmWidgetGithubListIssues.php @@ -1,4 +1,4 @@ -text(escape($issue['user'])) - ). - - // render issue text - _tag('p.issue_text', auto_link_text(escape($issue['body']))) + ) ); } diff --git a/lib/migration/doctrine/1269863841_version1.php b/lib/migration/doctrine/1269863841_version1.php new file mode 100644 index 0000000..dae86c6 --- /dev/null +++ b/lib/migration/doctrine/1269863841_version1.php @@ -0,0 +1,114 @@ +removeColumn('dm_error', 'klass'); + $this->removeColumn('dm_sent_mail', 'name'); + $this->removeColumn('dm_sent_mail', 'header'); + $this->removeColumn('dm_sent_mail', 'description'); + $this->removeColumn('dm_mail_template_translation', 'title'); + $this->addColumn('dm_error', 'php_class', 'string', '127', array( + 'notnull' => '1', + )); + $this->addColumn('dm_sent_mail', 'dm_mail_template_id', 'integer', '8', array( + )); + $this->addColumn('dm_sent_mail', 'subject', 'string', '5000', array( + 'notnull' => '1', + )); + $this->addColumn('dm_sent_mail', 'body', 'clob', '', array( + 'notnull' => '1', + )); + $this->addColumn('dm_sent_mail', 'from_email', 'string', '5000', array( + 'notnull' => '1', + )); + $this->addColumn('dm_sent_mail', 'to_email', 'string', '5000', array( + )); + $this->addColumn('dm_sent_mail', 'cc_email', 'string', '5000', array( + )); + $this->addColumn('dm_sent_mail', 'bcc_email', 'string', '5000', array( + )); + $this->addColumn('dm_sent_mail', 'reply_to_email', 'string', '5000', array( + )); + $this->addColumn('dm_sent_mail', 'sender_email', 'string', '5000', array( + )); + $this->addColumn('dm_sent_mail', 'strategy', 'string', '255', array( + )); + $this->addColumn('dm_sent_mail', 'transport', 'string', '255', array( + )); + $this->addColumn('dm_sent_mail', 'culture', 'string', '16', array( + )); + $this->addColumn('dm_sent_mail', 'debug_string', 'clob', '', array( + )); + $this->addColumn('dm_mail_template_translation', 'subject', 'string', '5000', array( + 'notnull' => '1', + )); + $this->addColumn('dm_mail_template_translation', 'cc_email', 'string', '5000', array( + )); + $this->addColumn('dm_mail_template_translation', 'bcc_email', 'string', '5000', array( + )); + $this->addColumn('dm_mail_template_translation', 'reply_to_email', 'string', '5000', array( + )); + $this->addColumn('dm_mail_template_translation', 'sender_email', 'string', '5000', array( + )); + $this->addColumn('dm_mail_template_translation', 'list_unsuscribe', 'string', '5000', array( + )); + $this->changeColumn('dm_setting', 'type', 'enum', '', array( + 'notnull' => '1', + 'values' => + array( + 0 => 'text', + 1 => 'boolean', + 2 => 'select', + 3 => 'textarea', + 4 => 'number', + 5 => 'datetime', + ), + 'default' => 'text', + )); + $this->changeColumn('dm_mail_template_translation', 'body', 'clob', '', array( + 'notnull' => '1', + )); + $this->changeColumn('dm_mail_template_translation', 'from_email', 'string', '5000', array( + 'notnull' => '1', + )); + } + + public function down() + { + $this->addColumn('dm_error', 'klass', 'string', '127', array( + 'notnull' => '1', + )); + $this->addColumn('dm_sent_mail', 'name', 'string', '255', array( + )); + $this->addColumn('dm_sent_mail', 'header', 'string', '60000', array( + )); + $this->addColumn('dm_sent_mail', 'description', 'string', '60000', array( + )); + $this->addColumn('dm_mail_template_translation', 'title', 'string', '5000', array( + )); + $this->removeColumn('dm_error', 'php_class'); + $this->removeColumn('dm_sent_mail', 'dm_mail_template_id'); + $this->removeColumn('dm_sent_mail', 'subject'); + $this->removeColumn('dm_sent_mail', 'body'); + $this->removeColumn('dm_sent_mail', 'from_email'); + $this->removeColumn('dm_sent_mail', 'to_email'); + $this->removeColumn('dm_sent_mail', 'cc_email'); + $this->removeColumn('dm_sent_mail', 'bcc_email'); + $this->removeColumn('dm_sent_mail', 'reply_to_email'); + $this->removeColumn('dm_sent_mail', 'sender_email'); + $this->removeColumn('dm_sent_mail', 'strategy'); + $this->removeColumn('dm_sent_mail', 'transport'); + $this->removeColumn('dm_sent_mail', 'culture'); + $this->removeColumn('dm_sent_mail', 'debug_string'); + $this->removeColumn('dm_mail_template_translation', 'subject'); + $this->removeColumn('dm_mail_template_translation', 'cc_email'); + $this->removeColumn('dm_mail_template_translation', 'bcc_email'); + $this->removeColumn('dm_mail_template_translation', 'reply_to_email'); + $this->removeColumn('dm_mail_template_translation', 'sender_email'); + $this->removeColumn('dm_mail_template_translation', 'list_unsuscribe'); + } +} \ No newline at end of file diff --git a/lib/migration/doctrine/1269863842_version2.php b/lib/migration/doctrine/1269863842_version2.php new file mode 100644 index 0000000..9f6c297 --- /dev/null +++ b/lib/migration/doctrine/1269863842_version2.php @@ -0,0 +1,35 @@ +createForeignKey('dm_sent_mail', 'dm_sent_mail_dm_mail_template_id_dm_mail_template_id', array( + 'name' => 'dm_sent_mail_dm_mail_template_id_dm_mail_template_id', + 'local' => 'dm_mail_template_id', + 'foreign' => 'id', + 'foreignTable' => 'dm_mail_template', + 'onUpdate' => '', + 'onDelete' => 'SET NULL', + )); + $this->addIndex('dm_sent_mail', 'dm_sent_mail_dm_mail_template_id', array( + 'fields' => + array( + 0 => 'dm_mail_template_id', + ), + )); + } + + public function down() + { + $this->dropForeignKey('dm_sent_mail', 'dm_sent_mail_dm_mail_template_id_dm_mail_template_id'); + $this->removeIndex('dm_sent_mail', 'dm_sent_mail_dm_mail_template_id', array( + 'fields' => + array( + 0 => 'dm_mail_template_id', + ), + )); + } +} \ No newline at end of file diff --git a/lib/migration/doctrine/1270252769_version3.php b/lib/migration/doctrine/1270252769_version3.php new file mode 100644 index 0000000..b975854 --- /dev/null +++ b/lib/migration/doctrine/1270252769_version3.php @@ -0,0 +1,18 @@ +changeColumn('dm_contact', 'body', 'clob', '', array( + 'notnull' => '1', + )); + } + + public function down() + { + + } +} \ No newline at end of file diff --git a/lib/migration/doctrine/1270582919_version4.php b/lib/migration/doctrine/1270582919_version4.php new file mode 100644 index 0000000..31207ce --- /dev/null +++ b/lib/migration/doctrine/1270582919_version4.php @@ -0,0 +1,19 @@ +addColumn('dm_user', 'uid', 'string', '8', array( + 'notnull' => '0', + 'unique' => '1', + )); + } + + public function down() + { + $this->removeColumn('dm_user', 'uid'); + } +} \ No newline at end of file diff --git a/lib/migration/doctrine/1270588372_version5.php b/lib/migration/doctrine/1270588372_version5.php new file mode 100644 index 0000000..ed34f52 --- /dev/null +++ b/lib/migration/doctrine/1270588372_version5.php @@ -0,0 +1,18 @@ +removeColumn('dm_user', 'uid'); + } + + public function down() + { + $this->addColumn('dm_user', 'uid', 'string', '8', array( + 'unique' => '1', + )); + } +} \ No newline at end of file diff --git a/lib/migration/doctrine/1270929142_version6.php b/lib/migration/doctrine/1270929142_version6.php new file mode 100644 index 0000000..66d552c --- /dev/null +++ b/lib/migration/doctrine/1270929142_version6.php @@ -0,0 +1,18 @@ +addColumn('dm_user', 'forgot_password_code', 'string', '8', array( + 'unique' => '1', + )); + } + + public function down() + { + $this->removeColumn('dm_user', 'forgot_password_code'); + } +} \ No newline at end of file diff --git a/lib/migration/doctrine/1270930780_version7.php b/lib/migration/doctrine/1270930780_version7.php new file mode 100644 index 0000000..ef788b6 --- /dev/null +++ b/lib/migration/doctrine/1270930780_version7.php @@ -0,0 +1,18 @@ +changeColumn('dm_user', 'forgot_password_code', 'string', '12', array( + 'unique' => '1', + )); + } + + public function down() + { + + } +} \ No newline at end of file diff --git a/plugins/dmGithubPlugin b/plugins/dmGithubPlugin index a2a67db..f3288cb 160000 --- a/plugins/dmGithubPlugin +++ b/plugins/dmGithubPlugin @@ -1 +1 @@ -Subproject commit a2a67dbdd2ae2913071c2b19265f9b17ef04b57d +Subproject commit f3288cbf6880b8a4fe4693114b788e4183777e54