| @@ 1723-1744 (lines=22) @@ | ||
| 1720 | return true; |
|
| 1721 | } |
|
| 1722 | ||
| 1723 | public static function update_103() |
|
| 1724 | { |
|
| 1725 | return Symphony::Database() |
|
| 1726 | ->alter(self::FIELD_TBL_NAME) |
|
| 1727 | ->add([ |
|
| 1728 | 'allow_delete' => [ |
|
| 1729 | 'type' => 'enum', |
|
| 1730 | 'values' => ['yes','no'], |
|
| 1731 | 'default' => 'no', |
|
| 1732 | ], |
|
| 1733 | ]) |
|
| 1734 | ->after('allow_link') |
|
| 1735 | ->execute() |
|
| 1736 | ->success(); |
|
| 1737 | } |
|
| 1738 | ||
| 1739 | public static function update_200() |
|
| 1740 | { |
|
| 1741 | return Symphony::Database() |
|
| 1742 | ->alter(self::FIELD_TBL_NAME) |
|
| 1743 | ->add([ |
|
| 1744 | 'allow_collapse' => [ |
|
| 1745 | 'type' => 'enum', |
|
| 1746 | 'values' => ['yes','no'], |
|
| 1747 | 'default' => 'yes', |
|
| @@ 1788-1809 (lines=22) @@ | ||
| 1785 | ->success(); |
|
| 1786 | } |
|
| 1787 | ||
| 1788 | public static function update_2008() |
|
| 1789 | { |
|
| 1790 | return Symphony::Database() |
|
| 1791 | ->alter(self::FIELD_TBL_NAME) |
|
| 1792 | ->add([ |
|
| 1793 | 'allow_search' => [ |
|
| 1794 | 'type' => 'enum', |
|
| 1795 | 'values' => ['yes','no'], |
|
| 1796 | 'default' => 'no', |
|
| 1797 | ], |
|
| 1798 | ]) |
|
| 1799 | ->after('allow_collapse') |
|
| 1800 | ->execute() |
|
| 1801 | ->success(); |
|
| 1802 | } |
|
| 1803 | ||
| 1804 | /** |
|
| 1805 | * |
|
| 1806 | * Drops the table needed for the settings of the field |
|
| 1807 | */ |
|
| 1808 | public static function deleteFieldTable() |
|
| 1809 | { |
|
| 1810 | return Symphony::Database() |
|
| 1811 | ->drop(self::FIELD_TBL_NAME) |
|
| 1812 | ->ifExists() |
|