35 if ($this->hasTable(
"system_log")) {
39 $table = $this->table(
"system_log", [
41 'encoding' =>
"utf8mb4",
42 'collation' =>
"utf8mb4_general_ci",
45 $table->addColumn(
'object_id',
'integer', [
47 'limit' => MysqlAdapter::INT_REGULAR,
51 $table->addColumn(
'object_class',
'string', [
56 $table->addColumn(
'object_type',
'string', [
61 $table->addColumn(
'object_subtype',
'string', [
66 $table->addColumn(
'event',
'string', [
71 $table->addColumn(
'performed_by_guid',
'integer', [
73 'limit' => MysqlAdapter::INT_BIG,
78 $table->addColumn(
'owner_guid',
'integer', [
80 'limit' => MysqlAdapter::INT_BIG,
85 $table->addColumn(
'access_id',
'integer', [
87 'limit' => MysqlAdapter::INT_REGULAR,
91 $table->addColumn(
'enabled',
'enum', [
101 $table->addColumn(
'time_created',
'integer', [
103 'limit' => MysqlAdapter::INT_REGULAR,
107 $table->addColumn(
'ip_address',
'string', [
112 $table->addIndex([
'object_id'], [
113 'name' =>
"object_id",
117 $table->addIndex([
'object_class'], [
118 'name' =>
"object_class",
122 $table->addIndex([
'object_type'], [
123 'name' =>
"object_type",
127 $table->addIndex([
'object_subtype'], [
128 'name' =>
"object_subtype",
132 $table->addIndex([
'event'], [
137 $table->addIndex([
'performed_by_guid'], [
138 'name' =>
"performed_by_guid",
142 $table->addIndex([
'access_id'], [
143 'name' =>
"access_id",
147 $table->addIndex([
'time_created'], [
148 'name' =>
"time_created",
157 'name' =>
"river_key",
change()
CREATE TABLE prefix_system_log ( id int(11) NOT NULL AUTO_INCREMENT, object_id int(11) NOT NULL...