sql updated

pull/1/head
moneroexamples 8 years ago
parent 165f2d6879
commit 3c685a06e1

@ -1,11 +1,11 @@
-- phpMyAdmin SQL Dump -- phpMyAdmin SQL Dump
-- version 4.6.5.2 -- version 4.5.2
-- https://www.phpmyadmin.net/ -- http://www.phpmyadmin.net
-- --
-- Host: localhost -- Host: localhost
-- Generation Time: Dec 25, 2016 at 04:01 AM -- Generation Time: Dec 27, 2016 at 06:13 AM
-- Server version: 10.1.20-MariaDB -- Server version: 10.1.19-MariaDB
-- PHP Version: 7.0.14 -- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00"; SET time_zone = "+00:00";
@ -33,12 +33,8 @@ CREATE TABLE `Accounts` (
`id` bigint(10) UNSIGNED NOT NULL, `id` bigint(10) UNSIGNED NOT NULL,
`address` varchar(95) NOT NULL, `address` varchar(95) NOT NULL,
`total_received` bigint(20) UNSIGNED NOT NULL DEFAULT '0', `total_received` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
`scanned_height` int(10) UNSIGNED NOT NULL DEFAULT '0',
`scanned_block_height` int(10) UNSIGNED NOT NULL DEFAULT '0', `scanned_block_height` int(10) UNSIGNED NOT NULL DEFAULT '0',
`start_height` int(10) UNSIGNED NOT NULL DEFAULT '0', `start_height` int(10) UNSIGNED NOT NULL DEFAULT '0',
`transaction_height` int(10) UNSIGNED NOT NULL DEFAULT '0',
`blockchain_height` int(10) UNSIGNED NOT NULL DEFAULT '0',
`total_sent` int(10) UNSIGNED NOT NULL DEFAULT '0',
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -89,6 +85,7 @@ DROP TABLE IF EXISTS `Transactions`;
CREATE TABLE `Transactions` ( CREATE TABLE `Transactions` (
`id` bigint(20) UNSIGNED NOT NULL, `id` bigint(20) UNSIGNED NOT NULL,
`hash` varchar(64) NOT NULL, `hash` varchar(64) NOT NULL,
`prefix_hash` varchar(64) NOT NULL DEFAULT '',
`account_id` bigint(20) UNSIGNED NOT NULL, `account_id` bigint(20) UNSIGNED NOT NULL,
`total_received` bigint(20) UNSIGNED NOT NULL, `total_received` bigint(20) UNSIGNED NOT NULL,
`total_sent` bigint(20) UNSIGNED NOT NULL, `total_sent` bigint(20) UNSIGNED NOT NULL,
@ -104,7 +101,6 @@ CREATE TABLE `Transactions` (
-- --
-- Stand-in structure for view `TransactionsWithOutsAndIns` -- Stand-in structure for view `TransactionsWithOutsAndIns`
-- (See below for the actual view)
-- --
DROP VIEW IF EXISTS `TransactionsWithOutsAndIns`; DROP VIEW IF EXISTS `TransactionsWithOutsAndIns`;
CREATE TABLE `TransactionsWithOutsAndIns` ( CREATE TABLE `TransactionsWithOutsAndIns` (
@ -172,7 +168,7 @@ ALTER TABLE `Transactions`
-- AUTO_INCREMENT for table `Accounts` -- AUTO_INCREMENT for table `Accounts`
-- --
ALTER TABLE `Accounts` ALTER TABLE `Accounts`
MODIFY `id` bigint(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; MODIFY `id` bigint(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
-- --
-- AUTO_INCREMENT for table `Inputs` -- AUTO_INCREMENT for table `Inputs`
-- --

Loading…
Cancel
Save