[DATABASE] Changed the type of the 'id' field of the ProfileList table from serial to int, as doctrine complains otherwise

This commit is contained in:
Hugo Sales 2020-03-30 18:19:44 +00:00 committed by Hugo Sales
parent afc4e87353
commit fe73001c36
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 8 additions and 12 deletions

View File

@ -166,15 +166,13 @@ class ProfileList
return [
'name' => 'profile_list',
'fields' => [
'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'],
'id' => ['type' => 'int', 'not null' => true, 'description' => 'unique identifier'],
'tagger' => ['type' => 'int', 'not null' => true, 'description' => 'user making the tag'],
'tag' => ['type' => 'varchar', 'length' => 64, 'not null' => true, 'description' => 'people tag'],
'description' => ['type' => 'text', 'description' => 'description of the people tag'],
'private' => ['type' => 'bool', 'default' => false, 'description' => 'is this tag private'],
'created' => ['type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date the tag was added'],
'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date the tag was modified'],
'uri' => ['type' => 'varchar', 'length' => 191, 'description' => 'universal identifier'],
'mainpage' => ['type' => 'varchar', 'length' => 191, 'description' => 'page to link to'],
'tagged_count' => ['type' => 'int', 'default' => 0, 'description' => 'number of people tagged with this tag by this user'],

View File

@ -79,8 +79,6 @@ class SchemaDefDriver extends StaticPHPDriver
'options' => ['comment' => $schema['description'] ?? ''],
]);
echo "{$class_name}\n";
foreach ($schema['fields'] as $name => $opts) {
// TODO
// Convert old to new types