28 if ($this->hasTable(
"metadata")) {
32 $table = $this->table(
"metadata", [
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'], [
109 $table->addIndex([
'owner_guid'], [
110 'name' =>
"owner_guid",
114 $table->addIndex([
'access_id'], [
115 'name' =>
"access_id",