codice:
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: 23 gen, 2011 at 10:54 AM
-- Versione MySQL: 5.1.52
-- Versione PHP: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `cmf_test`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `plugins`
--
CREATE TABLE IF NOT EXISTS `plugins` (
`flatname` varchar(50) NOT NULL,
`name` varchar(50) NOT NULL,
`version_name` varchar(40) NOT NULL,
`version_number` int(15) NOT NULL,
`description` text NOT NULL,
`dependencies` text NOT NULL,
`active` int(1) NOT NULL,
PRIMARY KEY (`flatname`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dump dei dati per la tabella `plugins`
--
INSERT INTO `plugins` (`flatname`, `name`, `version_name`, `version_number`, `description`, `dependencies`, `active`) VALUES
('A', '', '', 0, '', '', 1),
('B', '', '', 0, '', '["A"]', 1),
('C', '', '', 0, '', '["A"]', 1),
('D', '', '', 0, '', '["K"]', 1),
('E', '', '', 0, '', '["B"]', 1),
('F', '', '', 0, '', '["C","K"]', 1),
('K', '', '', 0, '', '', 1);
nell'insert c'è un esempio. Per quanto riguarda il campo dependencies l'ho fatto in json come array così è più semplice da php estrarlo con json_decode. La struttura de FS è in allegato. grazie