Skip to content
Extraits de code Groupes Projets
Valider f1c6e06a rédigé par nicod's avatar nicod
Parcourir les fichiers

Ajout d'un rang sur les liens

parent fff5dd25
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -89,10 +89,10 @@ function blocks_declarer_tables_objets_sql($tables) { ...@@ -89,10 +89,10 @@ function blocks_declarer_tables_objets_sql($tables) {
'principale' => 'oui', 'principale' => 'oui',
'table_objet_surnoms' => ['blocstype'], // table_objet('blocs_type') => 'blocs_types' 'table_objet_surnoms' => ['blocstype'], // table_objet('blocs_type') => 'blocs_types'
'field' => [ 'field' => [
'id_blocs_type' => 'bigint(21) NOT NULL', 'id_blocs_type' => 'bigint(21) NOT NULL',
'titre' => 'text NOT NULL DEFAULT ""', 'titre' => 'text NOT NULL DEFAULT ""',
'saisies' => 'text NOT NULL DEFAULT ""', 'saisies' => 'text NOT NULL DEFAULT ""',
'maj' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', 'maj' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
], ],
'key' => [ 'key' => [
'PRIMARY KEY' => 'id_blocs_type', 'PRIMARY KEY' => 'id_blocs_type',
...@@ -122,10 +122,11 @@ function blocks_declarer_tables_auxiliaires($tables) { ...@@ -122,10 +122,11 @@ function blocks_declarer_tables_auxiliaires($tables) {
$tables['spip_blocs_liens'] = [ $tables['spip_blocs_liens'] = [
'field' => [ 'field' => [
'id_bloc' => 'bigint(21) DEFAULT "0" NOT NULL', 'id_bloc' => 'bigint(21) DEFAULT "0" NOT NULL',
'id_objet' => 'bigint(21) DEFAULT "0" NOT NULL', 'id_objet' => 'bigint(21) DEFAULT "0" NOT NULL',
'objet' => 'varchar(25) DEFAULT "" NOT NULL', 'objet' => 'varchar(25) DEFAULT "" NOT NULL',
'vu' => 'varchar(6) DEFAULT "non" NOT NULL', 'rang_lien' => 'int(4) DEFAULT "0" NOT NULL',
'vu' => 'varchar(6) DEFAULT "non" NOT NULL',
], ],
'key' => [ 'key' => [
'PRIMARY KEY' => 'id_bloc,id_objet,objet', 'PRIMARY KEY' => 'id_bloc,id_objet,objet',
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter