Skip to content
Snippets Groups Projects
Commit e66d22d4 authored by Krista Naber's avatar Krista Naber
Browse files

Add database structure sql. Use mysql -u wellness -p wellness <...

Add database structure sql. Use mysql -u wellness -p wellness < resources_structure.sql to import the structure.
parent 395906a5
No related branches found
No related tags found
No related merge requests found
-- phpMyAdmin SQL Dump
-- version 2.11.1.2
-- http://www.phpmyadmin.net
--
-- Host: vigilante.unl.edu
-- Generation Time: Jan 04, 2010 at 11:04 AM
-- Server version: 5.0.51
-- PHP Version: 5.2.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `wellnessblog`
--
-- --------------------------------------------------------
--
-- Table structure for table `articles`
--
CREATE TABLE IF NOT EXISTS `articles` (
`id` int(10) unsigned NOT NULL auto_increment,
`title` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL,
`year` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `article_has_category`
--
CREATE TABLE IF NOT EXISTS `article_has_category` (
`article_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
KEY `article_id` (`article_id`,`category_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(10) unsigned NOT NULL auto_increment,
`title` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment