28 if ($this->hasTable(
"annotations")) {
32 $table = $this->table(
"annotations", [
34 'encoding' =>
"utf8mb4",
35 'collation' =>
"utf8mb4_general_ci",
38 $table->addColumn(
'entity_guid',
'integer', [
40 'limit' => MysqlAdapter::INT_BIG,
45 $table->addColumn(
'name',
'text', [
49 $table->addColumn(
'value',
'text', [
51 'limit' => MysqlAdapter::TEXT_LONG,
54 $table->addColumn(
'value_type',
'enum', [
63 $table->addColumn(
'owner_guid',
'integer', [
65 'limit' => MysqlAdapter::INT_BIG,
70 $table->addColumn(
'access_id',
'integer', [
72 'limit' => MysqlAdapter::INT_REGULAR,
76 $table->addColumn(
'time_created',
'integer', [
78 'limit' => MysqlAdapter::INT_REGULAR,
82 $table->addColumn(
'enabled',
'enum', [
92 $table->addIndex([
'entity_guid'], [
93 'name' =>
"entity_guid",
97 $table->addIndex([
'name'], [
103 $table->addIndex([
'value'], [
110 $table->addIndex([
'owner_guid'], [
111 'name' =>
"owner_guid",
115 $table->addIndex([
'access_id'], [
116 'name' =>
"access_id",
change()
CREATE TABLE prefix_annotations ( id int(11) NOT NULL AUTO_INCREMENT, entity_guid bigint(20) unsigned...