In your
install_sample_data
file, change this line (~line 22).Code: Select all
return ['\sebo\postreact\migration\install_sample_schema'];
Code: Select all
return ['\sebo\postreact\migrations\install_sample_schema'];
install_sample_data
file, change this line (~line 22).Code: Select all
return ['\sebo\postreact\migration\install_sample_schema'];
Code: Select all
return ['\sebo\postreact\migrations\install_sample_schema'];
so i realized, i changed the folder name (was migrations, made up by skeleton app) and changed to "migration".Something went wrong during the request and an exception was thrown. The changes made before the error occurred were reversed to the best of our abilities, but you should check the board for errors.
The migration "\sebo\postreact\migrations\install_sample_data" is not fulfillable, missing migration "\phpbb\db\migrations\data\v320\v320".
Return to the extension list
abbc3
(advanced bbcode ext 3, existing ext)...renamed the folder again in migrations
...uploaded the files via github, no way.\phpbb\db\migration\data\v320\v320
\sebo\postreact\migrations\install_sample_schema
\phpbb\db\migration\data\v320\v320
public static function depends_on()
['custom', [[$this, 'table_pr_install']]],
(custom installation data function call) and keep dependencies return ['\phpbb\db\migration\data\v320\v320'];
['custom', [[$this, 'table_pr_install']]],
(custom installation data function call) and keep dependencies return ['\sebo\postreact\migrations\install_sample_schema'];
sebo_postreact_table
? You have it in the function effectively_installed()
in install_sample_data
migration so if it exists migration doesn't apply schema changes and just considered as already installed. Probably that is the cause.sebo_postreact_table
(only schema) -> needed for post's infosebo_postreact_icon
(schema + populate) -> needed for icon's infosebo_postreact_table
is being added in your migration, since the suggestion.Code: Select all
public function update_schema()
{
return [
'add_tables' => [
$this->table_prefix . 'sebo_postreact_table' => [
'COLUMNS' => [
'postreact_id' => ['UINT', null, 'auto_increment'],
'topic_id' => ['UINT', 0],
'post_id' => ['UINT', 0],
'user_id' => ['UINT', 0],
'icon_id' => ['UINT', 0],
'react_time' => ['UINT:11', 0],
],
'PRIMARY_KEY' => 'postreact_id',
],
$this->table_prefix . 'sebo_postreact_icon' => [
'COLUMNS' => [
'id' => ['UINT', null, 'auto_increment'],
'icon_id' => ['UINT', 0],
'icon_url' => ['VCHAR:200', ''],
'icon_width' => ['UINT', 0],
'icon_height' => ['UINT', 0],
'icon_alt' => ['VCHAR:100', ''],
'status' => ['UINT:1', 0],
'active' => ['UINT:1', 0],
],
'PRIMARY_KEY' => 'id',
],
],
];
}
my_table
in the schema so the error shouldn't arise at all, lol.yes i uploaded via githubsebo wrote: ↑Mon Jul 29, 2024 12:36 pm nono is ok, i'm learning it's a project for the community...i have another work not a programmer!
instead i have understood how to use github so here is the file:
https://github.com/sebolp/postreact/blo ... e_data.php
i'm uploading the entire ext
A required module info file is missing: \sebo\postreact\acp\main_module
so it doesn't even reach to the schema changes public function effectively_installed()
from the install_sample_data.php
migration, data was filled successfully (including permissions, icons table data and config parameter).