mirror of
https://github.com/godotengine/godot-asset-library.git
synced 2026-02-25 06:33:01 +03:00
Sync DB schema
This commit is contained in:
@@ -5,6 +5,10 @@ SET time_zone = '+00:00';
|
|||||||
SET foreign_key_checks = 0;
|
SET foreign_key_checks = 0;
|
||||||
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
||||||
|
|
||||||
|
DROP DATABASE IF EXISTS `addonlib`;
|
||||||
|
CREATE DATABASE `addonlib` /*!40100 DEFAULT CHARACTER SET utf8 */;
|
||||||
|
USE `addonlib`;
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `as_assets`;
|
DROP TABLE IF EXISTS `as_assets`;
|
||||||
CREATE TABLE `as_assets` (
|
CREATE TABLE `as_assets` (
|
||||||
`asset_id` int(11) NOT NULL AUTO_INCREMENT,
|
`asset_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
@@ -20,16 +24,19 @@ CREATE TABLE `as_assets` (
|
|||||||
`browse_url` varchar(1024) NOT NULL,
|
`browse_url` varchar(1024) NOT NULL,
|
||||||
`icon_url` varchar(1024) NOT NULL,
|
`icon_url` varchar(1024) NOT NULL,
|
||||||
`searchable` tinyint(1) NOT NULL DEFAULT '0',
|
`searchable` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
|
`modify_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`asset_id`)
|
PRIMARY KEY (`asset_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
INSERT INTO `as_assets` (`asset_id`, `user_id`, `title`, `description`, `category_id`, `version`, `version_string`, `cost`, `rating`, `download_url`, `browse_url`, `icon_url`, `searchable`) VALUES
|
INSERT INTO `as_assets` (`asset_id`, `user_id`, `title`, `description`, `category_id`, `version`, `version_string`, `cost`, `rating`, `download_url`, `browse_url`, `icon_url`, `searchable`, `modify_date`) VALUES
|
||||||
(1, 1, 'Make Halo', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 1, '1.1', 'GPLv3', 3, 'https://github.com/reduz/godot-test-addon/archive/master.zip', 'https://github.com/reduz/godot-test-addon', 'http://localhost/public/addonlib/KOBUGE-triangle-small.png', 3),
|
(1, 1, 'Make Halo', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 1, '1.1', 'GPLv3', 3, 'https://github.com/reduz/godot-test-addon/archive/master.zip', 'https://github.com/reduz/godot-test-addon', 'http://localhost/public/addonlib/KOBUGE-triangle-small.png', 0, '2016-06-07 22:39:19'),
|
||||||
(2, 2, 'Game Holifier', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 3, '1.2', 'GPLv3', 1, '', '', '', 1),
|
(2, 2, 'Game Holifier', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 3, '1.2', 'GPLv3', 1, '', '', '', 1, '2016-06-06 18:55:03'),
|
||||||
(3, 3, 'Unity2Godot', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 0, '0.0', 'GPLv3', 1, '', '', '', 2),
|
(3, 3, 'Unity2Godot', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 0, '0.0', 'GPLv3', 1, '', '', '', 0, '2016-06-07 22:39:16'),
|
||||||
(4, 3, 'Pixel Painter', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 89, '1.40.2', 'GPLv3', 1, '', '', '', 3),
|
(4, 3, 'Pixel Painter', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies diam sed risus ultricies malesuada. Vivamus non vulputate massa.', 7, 89, '1.40.2', 'GPLv3', 1, '', '', '', 0, '2016-06-07 22:39:14'),
|
||||||
(8, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 6, 7, 'v1.2', 'GPLv3', 0, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 1),
|
(8, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 6, 7, 'v1.2', 'GPLv3', 0, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 1, '2016-06-06 18:55:03'),
|
||||||
(9, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 6, 4, 'v1.2', 'GPLv3', 0, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 1);
|
(9, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 6, 4, 'v1.2', 'GPLv3', 0, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 1, '2016-06-06 18:55:03'),
|
||||||
|
(10, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 3, 'v0.0.1', 'GPLv3', 0, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 0, '2016-06-07 22:47:38'),
|
||||||
|
(11, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 1, 'v0.0.1', 'GPLv3', 0, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 0, '2016-06-08 18:40:10');
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `as_asset_edits`;
|
DROP TABLE IF EXISTS `as_asset_edits`;
|
||||||
CREATE TABLE `as_asset_edits` (
|
CREATE TABLE `as_asset_edits` (
|
||||||
@@ -61,7 +68,12 @@ INSERT INTO `as_asset_edits` (`edit_id`, `asset_id`, `user_id`, `title`, `descri
|
|||||||
(5, 8, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 6, NULL, 'GPLv3', NULL, NULL, 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 0, '', '2016-06-03 23:17:22', '2016-06-03 23:17:22'),
|
(5, 8, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 6, NULL, 'GPLv3', NULL, NULL, 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 0, '', '2016-06-03 23:17:22', '2016-06-03 23:17:22'),
|
||||||
(6, 8, 5, NULL, NULL, 5, 'v1.2', NULL, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', NULL, 2, '', '2016-06-03 23:17:30', '2016-06-03 23:56:41'),
|
(6, 8, 5, NULL, NULL, 5, 'v1.2', NULL, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', NULL, 2, '', '2016-06-03 23:17:30', '2016-06-03 23:56:41'),
|
||||||
(7, 8, 5, NULL, NULL, NULL, 'v1.2', NULL, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', NULL, 3, 'Stupid edit', '2016-06-03 23:57:04', '2016-06-06 17:12:49'),
|
(7, 8, 5, NULL, NULL, NULL, 'v1.2', NULL, 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', NULL, 3, 'Stupid edit', '2016-06-03 23:57:04', '2016-06-06 17:12:49'),
|
||||||
(8, -1, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 'v0.0.1', 'GPLv3', 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 1, '', '2016-06-06 17:30:16', '2016-06-06 17:30:25');
|
(8, -1, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 'v0.0.1', 'GPLv3', 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 1, '', '2016-06-06 17:30:16', '2016-06-06 17:30:25'),
|
||||||
|
(9, -1, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 'v0.0.1', 'GPLv3', 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 2, '', '2016-06-07 22:32:24', '2016-06-07 22:40:58'),
|
||||||
|
(10, -1, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 'v0.0.1', 'GPLv3', 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 2, '', '2016-06-07 22:43:01', '2016-06-07 22:43:08'),
|
||||||
|
(11, 10, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 'v0.0.1', 'GPLv3', 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 3, 'Stupid edit', '2016-06-07 22:44:46', '2016-06-07 22:51:11'),
|
||||||
|
(12, -1, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 5, 'v0.0.1', 'GPLv3', 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 3, 'Stupid edit', '2016-06-08 18:30:38', '2016-06-08 18:39:43'),
|
||||||
|
(13, 11, 5, 'Minilens!', '1000 years after post-apocalyptic Earth, many form of lifes went extinct, including humans. An alien robot series, called Minilens, are cleaning up earth and collecting surviving flora. The game is won by destroying all Radioactive Barrels and collecting surviving flora. The drawback is that Minilens can\'t jump.', 7, 'v0.0.1', 'GPLv3', 'https://github.com/KOBUGE-Games/minilens/archive/v1.2.zip', 'https://github.com/KOBUGE-Games/minilens', 'https://raw.githubusercontent.com/KOBUGE-Games/minilens/master/icon.png', 2, '', '2016-06-08 18:39:54', '2016-06-08 18:40:10');
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `as_asset_previews`;
|
DROP TABLE IF EXISTS `as_asset_previews`;
|
||||||
CREATE TABLE `as_asset_previews` (
|
CREATE TABLE `as_asset_previews` (
|
||||||
@@ -114,6 +126,6 @@ INSERT INTO `as_users` (`user_id`, `username`, `email`, `password_hash`, `type`,
|
|||||||
(2, 'test_user', 'test@user.name', '$2y$12$0SkpFOqTEKUSY/78oWNPouYmzIM4UbMeWpw6.jeKgAWLKhHlioyyy', 0, NULL),
|
(2, 'test_user', 'test@user.name', '$2y$12$0SkpFOqTEKUSY/78oWNPouYmzIM4UbMeWpw6.jeKgAWLKhHlioyyy', 0, NULL),
|
||||||
(3, 'test_test-f5a26d68038bf', 'test@user.name', '$2y$12$itPZ3LneC3p7SfoIBGUdxeVeFmg0ATHu0kkKMt8fytsJKBBMm3Nyy', 0, NULL),
|
(3, 'test_test-f5a26d68038bf', 'test@user.name', '$2y$12$itPZ3LneC3p7SfoIBGUdxeVeFmg0ATHu0kkKMt8fytsJKBBMm3Nyy', 0, NULL),
|
||||||
(4, 'test-9e620348d0ed3', 'test@user.name', '$2y$12$Nvlv9RRl0xuYNrX7usLTl.1OcYY95Cjod.Xn1yKw81jCxUYhMEMjG', 0, NULL),
|
(4, 'test-9e620348d0ed3', 'test@user.name', '$2y$12$Nvlv9RRl0xuYNrX7usLTl.1OcYY95Cjod.Xn1yKw81jCxUYhMEMjG', 0, NULL),
|
||||||
(5, 'test-598e3f2f3e9a7', 'test@user.name', '$2y$12$27pa0RbFvsy0k0tGh98ClOhLAW.BtaPL4ABGysU0OvwqDncFcyFo.', 1, NULL);
|
(5, 'test-598e3f2f3e9a7', 'test@user.name', '$2y$12$27pa0RbFvsy0k0tGh98ClOhLAW.BtaPL4ABGysU0OvwqDncFcyFo.', 50, NULL);
|
||||||
|
|
||||||
-- 2016-06-06 15:04:32
|
-- 2016-06-08 17:20:11
|
||||||
|
|||||||
Reference in New Issue
Block a user