34 if ($this->hasTable(
"river")) {
38 $table = $this->table(
"river", [
40 'encoding' =>
"utf8mb4",
41 'collation' =>
"utf8mb4_general_ci",
44 $table->addColumn(
'type',
'string', [
49 $table->addColumn(
'subtype',
'string', [
54 $table->addColumn(
'action_type',
'string', [
59 $table->addColumn(
'access_id',
'integer', [
61 'limit' => MysqlAdapter::INT_REGULAR,
65 $table->addColumn(
'view',
'text', [
69 $table->addColumn(
'subject_guid',
'integer', [
71 'limit' => MysqlAdapter::INT_BIG,
76 $table->addColumn(
'object_guid',
'integer', [
78 'limit' => MysqlAdapter::INT_BIG,
83 $table->addColumn(
'target_guid',
'integer', [
85 'limit' => MysqlAdapter::INT_BIG,
90 $table->addColumn(
'annotation_id',
'integer', [
92 'limit' => MysqlAdapter::INT_REGULAR,
96 $table->addColumn(
'posted',
'integer', [
98 'limit' => MysqlAdapter::INT_REGULAR,
102 $table->addColumn(
'enabled',
'enum', [
112 $table->addIndex([
'type'], [
117 $table->addIndex([
'action_type'], [
118 'name' =>
"action_type",
122 $table->addIndex([
'access_id'], [
123 'name' =>
"access_id",
127 $table->addIndex([
'subject_guid'], [
128 'name' =>
"subject_guid",
132 $table->addIndex([
'object_guid'], [
133 'name' =>
"object_guid",
137 $table->addIndex([
'target_guid'], [
138 'name' =>
"target_guid",
142 $table->addIndex([
'annotation_id'], [
143 'name' =>
"annotation_id",
147 $table->addIndex([
'posted'], [
change()
CREATE TABLE prefix_river ( id int(11) NOT NULL AUTO_INCREMENT, type varchar(8) NOT NULL...