Commit 09001bbf authored by Mat's avatar Mat

modifie des colonnes de la db par cohérence + dumpsql

* created_at et updated_at
parent 602b0f34
......@@ -39,14 +39,14 @@ class Offre
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="datetime")
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var \DateTime
*
* @ORM\Column(name="updatedAt", type="datetime")
* @ORM\Column(name="updated_at", type="datetime", nullable=true)
*/
private $updatedAt;
......@@ -60,7 +60,7 @@ class Offre
/**
* @var \DateTime
*
* @ORM\Column(name="endedAt", type="datetime")
* @ORM\Column(name="ended_at", type="datetime")
*/
private $endedAt;
......@@ -72,7 +72,6 @@ class Offre
public function prePersist()
{
$this->createdAt = new \DateTime();
$this->updatedAt = new \DateTime('0000-00-00 00:00:00');
}
/**
......
......@@ -44,14 +44,14 @@ class OffreLegumes
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="datetime")
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var \DateTime
*
* @ORM\Column(name="updatedAt", type="datetime", nullable=true)
* @ORM\Column(name="updated_at", type="datetime", nullable=true)
*/
private $updatedAt;
......
......@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Hôte : 172.17.0.1
-- Généré le : jeu. 07 juin 2018 à 11:31
-- Généré le : lun. 11 juin 2018 à 12:57
-- Version du serveur : 10.0.34-MariaDB-1~jessie
-- Version de PHP : 7.2.2
......@@ -50,7 +50,7 @@ CREATE TABLE `fos_user` (
--
INSERT INTO `fos_user` (`id`, `username`, `username_canonical`, `email`, `email_canonical`, `enabled`, `salt`, `password`, `last_login`, `confirmation_token`, `password_requested_at`, `roles`) VALUES
(1, 'mathieu', 'mathieu', 'jaum_mathieu@collectifs.net', 'jaum_mathieu@collectifs.net', 1, NULL, '$2y$13$YM5GI53uRu0k32kIL8aZyeOSqkiZIEdXA5t2vdmchfPBMWcso3eJa', '2018-06-07 09:42:28', NULL, NULL, 'a:1:{i:0;s:10:\"ROLE_ADMIN\";}');
(1, 'mathieu', 'mathieu', 'jaum_mathieu@collectifs.net', 'jaum_mathieu@collectifs.net', 1, NULL, '$2y$13$YM5GI53uRu0k32kIL8aZyeOSqkiZIEdXA5t2vdmchfPBMWcso3eJa', '2018-06-11 13:51:14', NULL, NULL, 'a:1:{i:0;s:10:\"ROLE_ADMIN\";}');
-- --------------------------------------------------------
......@@ -68,8 +68,8 @@ CREATE TABLE `legume` (
`quantite_max` double DEFAULT NULL,
`quantite_step` double DEFAULT NULL,
`prix_unitaire` double NOT NULL,
`updated_at` datetime NOT NULL,
`image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`updated_at` datetime DEFAULT NULL,
`image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`is_fruit` tinyint(1) NOT NULL,
`is_revente` tinyint(1) NOT NULL
......@@ -80,36 +80,39 @@ CREATE TABLE `legume` (
--
INSERT INTO `legume` (`id`, `nom`, `description`, `origine`, `unite`, `quantite_min`, `quantite_max`, `quantite_step`, `prix_unitaire`, `updated_at`, `image`, `created_at`, `is_fruit`, `is_revente`) VALUES
(1, 'Courgettes', 'Jeunes courgettes en vrac', NULL, 'kg', 1, 10, 0.2, 4, '2018-06-05 23:50:00', 'pois.jpg', '0000-00-00 00:00:00', 0, 0),
(1, 'Courgettes', 'Jeunes courgettes en vrac hop', NULL, 'kg', 1, 10, 0.2, 4, '2018-06-10 15:46:30', 'cornichon.jpg', '0000-00-00 00:00:00', 0, 0),
(2, 'Persil', 'Botte de persil plat', NULL, 'botte', 2, 20, 0.4, 1.4, '2018-06-03 16:34:26', 'radis.jpg', '0000-00-00 00:00:00', 0, 0),
(3, 'Chou pointu', 'hop hip', NULL, 'pièce', NULL, NULL, NULL, 2.4, '2018-06-04 16:39:56', 'cornichon.jpg', '0000-00-00 00:00:00', 0, 0),
(4, 'Jeunes carottes', 'vrac', NULL, 'botte', NULL, NULL, NULL, 1.6, '2018-06-03 13:47:48', 'carottes.jpg', '0000-00-00 00:00:00', 0, 0),
(5, 'Jeunes oignons', '', NULL, 'botte', 1, 10, 1, 1.6, '2018-06-04 16:29:39', 'radis.jpg', '0000-00-00 00:00:00', 1, 0),
(6, 'Aillette', '', NULL, 'botte', NULL, NULL, NULL, 2, '2018-06-03 17:14:24', '', '0000-00-00 00:00:00', 0, 0),
(7, 'Jeunes Navet', 'je suis navré', NULL, 'botte', 2, 3, 4, 1.6, '2018-06-06 01:40:36', '', '0000-00-00 00:00:00', 1, 0),
(4, 'Jeunes carottes', 'vrac et hop et zou', NULL, 'botte', NULL, NULL, NULL, 1.6, '2018-06-08 23:44:42', 'carottes.jpg', '0000-00-00 00:00:00', 0, 0),
(5, 'Jeunes oignons', '', NULL, 'botte', 1, 10, 1, 1.6, '2018-06-08 23:45:14', 'radis.jpg', '0000-00-00 00:00:00', 0, 0),
(6, 'Aillette', '', NULL, 'botte', 26, NULL, NULL, 2, '2018-06-08 23:44:53', '', '0000-00-00 00:00:00', 0, 0),
(7, 'Jeunes Navet', 'je suis navré', NULL, 'botte', 2, 3, 4, 1.6, '2018-06-08 23:46:18', '', '0000-00-00 00:00:00', 0, 0),
(8, 'Chou Rave vert', '', NULL, 'pièce', NULL, NULL, NULL, 1.5, '2018-06-03 19:27:27', '', '0000-00-00 00:00:00', 0, 0),
(9, 'Bette Primeur', 'ici c\'est fait', NULL, 'botte', NULL, NULL, NULL, 2.2, '2018-06-03 15:41:22', 'radis.jpg', '0000-00-00 00:00:00', 0, 0),
(10, 'PDT Agria', '', 'Françis Dumortier, Agribio', 'kg', NULL, NULL, NULL, 1.2, '2018-06-03 19:15:30', '', '0000-00-00 00:00:00', 0, 1),
(11, 'PDT Agria', '', 'Françis Dumortier, Agribio', 'kg', NULL, NULL, NULL, 15, '2018-06-03 19:02:22', '', '0000-00-00 00:00:00', 0, 1),
(12, 'PDT ditta', 'Ferme Bio Belge', NULL, 'kg', 0.5, 25, 0.5, 1.2, '2018-06-03 19:16:34', '', '0000-00-00 00:00:00', 0, 0),
(13, 'Carotte', 'Nouvelle', 'Italie', 'kg', NULL, NULL, NULL, 2, '2018-06-05 20:40:57', 'carottes.jpg', '0000-00-00 00:00:00', 0, 1),
(14, 'Oignon Jaune', 'Bio Belge bb', NULL, 'kg', NULL, NULL, NULL, 1.5, '2018-06-05 14:11:07', '', '0000-00-00 00:00:00', 1, 0),
(14, 'Oignon Jaune', 'Bio Belge bb', NULL, 'kg', NULL, NULL, NULL, 1.5, '2018-06-08 16:18:55', '', '0000-00-00 00:00:00', 0, 0),
(15, 'Oignon Rouge', 'Bio Belge', NULL, 'kg', NULL, NULL, NULL, 2.5, '2018-06-03 14:48:16', 'tomate_cerise.jpg', '0000-00-00 00:00:00', 0, 0),
(16, 'Échalotes', 'Bio Lorraine', NULL, 'kg', NULL, NULL, NULL, 5, '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, 0),
(17, 'Ail sec', 'Bio', 'Espagne', 'kg', NULL, NULL, NULL, 10, '2018-06-03 19:17:02', '', '0000-00-00 00:00:00', 0, 1),
(18, 'Céleri rave', 'Bio Belge', NULL, 'pièce', NULL, NULL, NULL, 2.5, '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, 0),
(18, 'Céleri rave', 'Bio Belge', 'Agribio', 'pièce', 1, 5, 1, 3.2, '2018-06-10 02:16:32', '', '0000-00-00 00:00:00', 0, 1),
(19, 'Poireaux', 'Bio Belge', NULL, 'kg', NULL, NULL, NULL, 4, '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, 0),
(20, 'Orange', 'Valencia Bio Italie', NULL, 'kg', NULL, NULL, NULL, 2.2, '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, 0),
(20, 'Orange', 'Valencia Bio Italie', NULL, 'kg', NULL, NULL, NULL, 2.2, '2018-06-08 23:45:41', '', '0000-00-00 00:00:00', 1, 0),
(21, 'Citron', 'Citrons Bio de Sicile', 'Italie', 'kg', NULL, NULL, NULL, 3, '2018-06-04 22:25:04', 'cornichon.jpg', '0000-00-00 00:00:00', 1, 1),
(22, 'Tomates', 'Jeunes tomates en vrac. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Italie', 'kg', 0.25, 10, 0.25, 4, '2018-06-03 19:18:38', 'tomate.jpg', '0000-00-00 00:00:00', 0, 1),
(23, 'Persil', 'Botte de persil plat', NULL, 'botte', NULL, NULL, NULL, 1.4, '2018-06-03 16:46:22', 'pois.jpg', '0000-00-00 00:00:00', 0, 0),
(24, 'Fenouil', '', NULL, 'botte', NULL, NULL, NULL, 1.6, '2018-06-04 23:09:44', 'fenouil.jpg', '0000-00-00 00:00:00', 0, 0),
(25, 'Chou pointu', 'On s\'amuse', NULL, 'pièce', NULL, NULL, NULL, 2.2, '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, 0),
(26, 'Potimarron', 'haha le voila', NULL, 'pièce', 1, 10, 1, 2.2, '2018-06-03 17:39:08', 'oignon.jpg', '2018-06-03 17:39:08', 0, 0),
(27, 'Pommes de saison', 'alala', NULL, 'kg', 1, 12, 0.5, 3.7, '2018-06-04 22:24:22', 'tomate_cerise.jpg', '2018-06-04 11:43:23', 0, 0),
(27, 'Pommes de saison', 'alala', NULL, 'kg', NULL, NULL, NULL, 3.7, '2018-06-10 21:56:12', 'tomate_cerise.jpg', '2018-06-04 11:43:23', 1, 1),
(28, 'Courgettes', 'Jeunes courgettes en vrac', NULL, 'kg', 2, 20, 0.25, 4.2, '2018-06-04 14:30:43', 'pois.jpg', '2018-06-04 14:29:39', 0, 0),
(29, 'Courgettes', 'Jeunes courgettes en vrac', NULL, 'kg', 1, 10, 0.2, 4, '2018-06-04 23:10:49', 'fenouil2.jpg', '2018-06-04 14:46:08', 0, 0),
(30, 'Échalotes', 'Bio Lorraine', NULL, 'kg', NULL, NULL, NULL, 5, '0000-00-00 00:00:00', '', '2018-06-05 21:45:44', 0, 0);
(30, 'Échalotes', 'Bio Lorraine', NULL, 'kg', NULL, NULL, NULL, 5, '0000-00-00 00:00:00', '', '2018-06-05 21:45:44', 0, 0),
(31, 'Aillette', '', NULL, 'botte', 26, NULL, NULL, 2.5, '2018-06-10 02:21:59', '', '2018-06-10 02:21:04', 0, 0),
(32, 'Pommes de saison', 'alala', NULL, 'kg', 1, 12, 0.5, 3.7, '2018-06-08 23:45:53', 'tomate_cerise.jpg', '2018-06-10 02:22:21', 1, 0),
(33, 'Poire', 'de saison', 'Aubel, Herve', 'kg', 1, 3, 0.25, 2.3, NULL, NULL, '2018-06-10 23:38:45', 1, 1);
-- --------------------------------------------------------
......@@ -120,9 +123,9 @@ INSERT INTO `legume` (`id`, `nom`, `description`, `origine`, `unite`, `quantite_
CREATE TABLE `offre` (
`id` int(11) NOT NULL,
`reference` varchar(16) COLLATE utf8_unicode_ci NOT NULL,
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
`endedAt` datetime NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
`ended_at` datetime NOT NULL,
`status` enum('draft','current','closed','trash') COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
......@@ -130,13 +133,21 @@ CREATE TABLE `offre` (
-- Déchargement des données de la table `offre`
--
INSERT INTO `offre` (`id`, `reference`, `createdAt`, `updatedAt`, `endedAt`, `status`) VALUES
INSERT INTO `offre` (`id`, `reference`, `created_at`, `updated_at`, `ended_at`, `status`) VALUES
(1, 'OF18060601', '2018-06-05 23:50:00', '2018-06-05 23:50:00', '2018-06-05 23:50:00', 'closed'),
(2, 'OF18060602', '2018-06-05 23:50:00', '2018-06-05 23:50:00', '2018-06-05 23:50:00', 'current'),
(3, 'OF18060503', '2018-06-05 23:50:00', '2018-06-05 23:50:00', '2018-06-05 23:50:00', 'draft'),
(4, 'OF18060703', '2018-06-07 12:07:19', '0000-00-00 00:00:00', '2013-01-01 00:00:00', 'draft'),
(5, 'OF18060704', '2018-06-07 12:32:36', '0000-00-00 00:00:00', '2018-06-20 12:00:00', 'draft'),
(6, 'OF18060705', '2018-06-07 13:23:21', '0000-00-00 00:00:00', '2018-08-04 00:00:00', 'draft');
(2, 'OF18060602', '2018-06-05 23:50:00', '2018-06-05 23:50:00', '2018-06-05 23:50:00', 'closed'),
(3, 'OF18060503', '2018-06-05 23:50:00', '2018-06-07 19:19:15', '2018-06-05 23:50:00', 'closed'),
(4, 'OF18060703', '2018-06-07 12:07:19', '2018-06-07 19:19:23', '2013-01-01 00:00:00', 'closed'),
(5, 'OF18060704', '2018-06-07 12:32:36', '2018-06-07 19:41:53', '2018-06-20 12:00:00', 'closed'),
(6, 'OF18060705', '2018-06-07 13:23:21', '2018-06-07 19:44:45', '2018-08-04 00:00:00', 'closed'),
(7, 'OF18060706', '2018-06-07 13:42:32', '2018-06-07 19:54:11', '2018-06-30 00:00:00', 'closed'),
(8, 'OF18060707', '2018-06-07 14:14:20', '2018-06-07 19:57:08', '2018-06-15 00:00:00', 'closed'),
(19, 'OF18060813', '2018-06-08 19:38:03', '0000-00-00 00:00:00', '2018-06-16 12:00:00', 'draft'),
(20, 'OF18060814', '2018-06-08 19:41:20', '2018-06-10 18:39:13', '2018-06-27 12:00:00', 'current'),
(21, 'OF18060901', '2018-06-09 09:56:05', '2018-06-10 16:59:52', '2018-06-12 12:00:00', 'current'),
(22, 'OF18061001', '2018-06-10 18:35:53', '0000-00-00 00:00:00', '2018-06-25 12:00:00', 'draft'),
(23, 'OF18061002', '2018-06-10 20:29:54', '2018-06-10 22:46:54', '2018-07-18 12:00:00', 'current'),
(25, 'OF18061102', '2018-06-11 11:33:48', '0000-00-00 00:00:00', '2018-06-20 12:00:00', 'draft');
-- --------------------------------------------------------
......@@ -148,8 +159,8 @@ CREATE TABLE `offre_legumes` (
`id` int(11) NOT NULL,
`id_offre` int(11) NOT NULL,
`reference` varchar(16) COLLATE utf8_unicode_ci NOT NULL,
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
`nom` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`description` longtext COLLATE utf8_unicode_ci NOT NULL,
`is_fruit` tinyint(1) NOT NULL,
......@@ -160,12 +171,47 @@ CREATE TABLE `offre_legumes` (
`quantite_min` double DEFAULT NULL,
`quantite_max` double DEFAULT NULL,
`quantite_step` double DEFAULT NULL,
`image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`volume_max` double DEFAULT NULL,
`is_promo` tinyint(1) NOT NULL,
`promo` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Déchargement des données de la table `offre_legumes`
--
INSERT INTO `offre_legumes` (`id`, `id_offre`, `reference`, `created_at`, `updated_at`, `nom`, `description`, `is_fruit`, `is_revente`, `origine`, `prix_unitaire`, `unite`, `quantite_min`, `quantite_max`, `quantite_step`, `image`, `volume_max`, `is_promo`, `promo`) VALUES
(1, 21, 'LD001001', '2018-06-10 16:14:04', NULL, 'Courgettes', 'Jeunes courgettes en vrac hop', 0, 0, NULL, 4, 'kg', 1, 10, 0.2, 'cornichon.jpg', NULL, 0, NULL),
(4, 21, 'LD002002', '2018-06-10 16:23:49', NULL, 'Persil', 'Botte de persil plat', 0, 0, NULL, 1.4, 'botte', 2, 20, 0.4, 'radis.jpg', NULL, 0, NULL),
(6, 21, 'LD022003', '2018-06-10 16:26:20', NULL, 'Tomates', 'Jeunes tomates en vrac. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 0, 1, 'Italie', 4, 'kg', 0.25, 10, 0.25, 'tomate.jpg', NULL, 0, NULL),
(7, 21, 'LD022004', '2018-06-10 16:52:50', NULL, 'Tomates', 'Jeunes tomates en vrac. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 0, 1, 'Italie', 4, 'kg', 0.25, 10, 0.25, 'tomate.jpg', NULL, 0, NULL),
(8, 20, 'LD009001', '2018-06-10 17:42:24', NULL, 'Bette Primeur', 'ici c\'est fait', 0, 0, NULL, 2.2, 'botte', NULL, NULL, NULL, 'radis.jpg', NULL, 0, NULL),
(9, 20, 'LD001002', '2018-06-10 17:47:42', NULL, 'Courgettes', 'Jeunes courgettes en vrac hop', 0, 0, NULL, 4, 'kg', 1, 10, 0.2, 'cornichon.jpg', NULL, 0, NULL),
(10, 20, 'LD013003', '2018-06-10 17:48:14', NULL, 'Carotte', 'Nouvelle', 0, 1, 'Italie', 2, 'kg', NULL, NULL, NULL, 'carottes.jpg', NULL, 0, NULL),
(11, 20, 'LD024004', '2018-06-10 17:50:51', NULL, 'Fenouil', '', 0, 0, NULL, 1.6, 'botte', NULL, NULL, NULL, 'fenouil.jpg', NULL, 0, NULL),
(13, 20, 'LD002005', '2018-06-10 18:18:16', NULL, 'Persil', 'Botte de persil plat', 0, 0, NULL, 1.4, 'botte', 2, 20, 0.4, 'radis.jpg', NULL, 0, NULL),
(14, 19, 'LD005001', '2018-06-10 18:21:34', NULL, 'Jeunes oignons', '', 0, 0, NULL, 1.6, 'botte', 1, 10, 1, 'radis.jpg', NULL, 0, NULL),
(15, 20, 'LD009006', '2018-06-10 18:21:45', NULL, 'Bette Primeur', 'ici c\'est fait', 0, 0, NULL, 2.2, 'botte', NULL, NULL, NULL, 'radis.jpg', NULL, 0, NULL),
(16, 20, 'LD007007', '2018-06-10 18:22:27', NULL, 'Jeunes Navet', 'je suis navré', 0, 0, NULL, 1.6, 'botte', 2, 3, 4, '', NULL, 0, NULL),
(17, 20, 'LD013008', '2018-06-10 18:24:17', NULL, 'Carotte', 'Nouvelle', 0, 1, 'Italie', 2, 'kg', NULL, NULL, NULL, 'carottes.jpg', NULL, 0, NULL),
(18, 19, 'LD004002', '2018-06-10 18:26:19', NULL, 'Jeunes carottes', 'vrac et hop et zou', 0, 0, NULL, 1.6, 'botte', NULL, NULL, NULL, 'carottes.jpg', NULL, 0, NULL),
(20, 22, 'LD026001', '2018-06-10 18:36:19', NULL, 'Potimarron', 'haha le voila', 0, 0, NULL, 2.2, 'pièce', 1, 10, 1, 'oignon.jpg', NULL, 0, NULL),
(22, 22, 'LD019002', '2018-06-10 18:37:37', NULL, 'Poireaux', 'Bio Belge', 0, 0, NULL, 4, 'kg', NULL, NULL, NULL, '', NULL, 0, NULL),
(26, 22, 'LD002003', '2018-06-10 18:48:06', NULL, 'Persil', 'Botte de persil plat', 0, 0, NULL, 1.4, 'botte', 2, 20, 0.4, 'radis.jpg', NULL, 0, NULL),
(27, 22, 'LD002004', '2018-06-10 18:48:25', NULL, 'Persil', 'Botte de persil plat', 0, 0, NULL, 1.4, 'botte', 2, 20, 0.4, 'radis.jpg', NULL, 0, NULL),
(29, 19, 'LD006003', '2018-06-10 21:43:48', NULL, 'Aillette', '', 0, 0, NULL, 2, 'botte', 26, NULL, NULL, '', NULL, 0, NULL),
(36, 23, 'LD001003', '2018-06-10 22:16:29', NULL, 'Courgettes', 'Jeunes courgettes en vrac hop', 0, 0, NULL, 4, 'kg', 1, 10, 0.2, 'cornichon.jpg', NULL, 0, NULL),
(37, 23, 'LD004004', '2018-06-10 22:21:17', NULL, 'Jeunes carottes', 'vrac et hop et zou', 0, 0, NULL, 1.6, 'botte', NULL, NULL, NULL, 'carottes.jpg', NULL, 0, NULL),
(39, 23, 'FR027006', '2018-06-10 22:37:27', NULL, 'Pommes de saison', 'alala', 1, 1, NULL, 3.7, 'kg', NULL, NULL, NULL, 'tomate_cerise.jpg', NULL, 0, NULL),
(40, 23, 'FD032007', '2018-06-10 22:37:39', NULL, 'Pommes de saison', 'alala', 1, 0, NULL, 3.7, 'kg', 1, 12, 0.5, 'tomate_cerise.jpg', NULL, 0, NULL),
(41, 23, 'LR010008', '2018-06-10 22:37:49', NULL, 'PDT Agria', '', 0, 1, 'Françis Dumortier, Agribio', 1.2, 'kg', NULL, NULL, NULL, '', NULL, 0, NULL),
(42, 23, 'LR018009', '2018-06-10 22:38:59', NULL, 'Céleri rave', 'Bio Belge', 0, 1, 'Agribio', 3.2, 'pièce', 1, 5, 1, '', NULL, 0, NULL),
(43, 19, 'FR021004', '2018-06-10 22:44:27', NULL, 'Citron', 'Citrons Bio de Sicile', 1, 1, 'Italie', 3, 'kg', NULL, NULL, NULL, 'cornichon.jpg', NULL, 0, NULL),
(44, 19, 'FD020005', '2018-06-10 22:44:34', NULL, 'Orange', 'Valencia Bio Italie', 1, 0, NULL, 2.2, 'kg', NULL, NULL, NULL, '', NULL, 0, NULL),
(45, 22, 'FR033005', '2018-06-10 23:40:12', NULL, 'Poire', 'de saison', 1, 1, 'Aubel, Herve', 2.3, 'kg', 1, 3, 0.25, NULL, NULL, 0, NULL),
(46, 22, 'LD004006', '2018-06-11 11:19:04', NULL, 'Jeunes carottes', 'vrac et hop et zou', 0, 0, NULL, 1.6, 'botte', NULL, NULL, NULL, 'carottes.jpg', NULL, 0, NULL);
--
-- Index pour les tables déchargées
--
......@@ -197,7 +243,6 @@ ALTER TABLE `offre`
--
ALTER TABLE `offre_legumes`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `UNIQ_C3E208C2AEA34913` (`reference`),
ADD KEY `IDX_C3E208C24103C75F` (`id_offre`);
--
......@@ -214,19 +259,19 @@ ALTER TABLE `fos_user`
-- AUTO_INCREMENT pour la table `legume`
--
ALTER TABLE `legume`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;
--
-- AUTO_INCREMENT pour la table `offre`
--
ALTER TABLE `offre`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT pour la table `offre_legumes`
--
ALTER TABLE `offre_legumes`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
--
-- Contraintes pour les tables déchargées
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment