mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-28 03:10:45 +00:00
limit ip -> update sql
This commit is contained in:
parent
7f7e5a3cb5
commit
f5b20c080f
@ -301,11 +301,11 @@ CREATE TABLE `django_content_type` (
|
||||
`model` varchar(100) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `django_content_type_app_label_45f3b1d93ec8c61c_uniq` (`app_label`,`model`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
|
||||
INSERT INTO `django_content_type` VALUES (50,'admin_log','adminlog'),(12,'api2','token'),(13,'api2','tokenv2'),(14,'avatar','avatar'),(15,'avatar','groupavatar'),(17,'base','clientlogintoken'),(22,'base','commandslastcheck'),(21,'base','devicetoken'),(19,'base','filecomment'),(20,'base','filediscuss'),(16,'base','groupenabledmodule'),(23,'base','innerpubmsg'),(24,'base','innerpubmsgreply'),(18,'base','userenabledmodule'),(25,'base','userlastlogin'),(26,'base','userstarredfiles'),(4,'captcha','captchastore'),(27,'contacts','contact'),(1,'contenttypes','contenttype'),(5,'database','constance'),(35,'group','groupmessage'),(36,'group','messageattachment'),(37,'group','messagereply'),(34,'group','publicgroup'),(29,'institutions','institution'),(28,'institutions','institutionadmin'),(30,'institutions','institutionquota'),(31,'invitations','invitation'),(38,'notifications','notification'),(39,'notifications','usernotification'),(40,'options','useroptions'),(62,'organizations','orgmemberquota'),(6,'post_office','attachment'),(8,'post_office','email'),(7,'post_office','emailtemplate'),(9,'post_office','log'),(42,'profile','detailedprofile'),(41,'profile','profile'),(3,'registration','registrationprofile'),(54,'revision_tag','revisiontags'),(55,'revision_tag','tags'),(60,'role_permissions','adminrole'),(2,'sessions','session'),(49,'share','anonymousshare'),(48,'share','extragroupssharepermission'),(47,'share','extrasharepermission'),(44,'share','fileshare'),(45,'share','orgfileshare'),(43,'share','privatefiledirshare'),(46,'share','uploadlinkshare'),(61,'sysadmin_extra','userloginlog'),(52,'tags','filetag'),(51,'tags','fileuuidmap'),(53,'tags','tags'),(10,'termsandconditions','termsandconditions'),(11,'termsandconditions','usertermsandconditions'),(56,'two_factor','phonedevice'),(59,'two_factor','staticdevice'),(57,'two_factor','statictoken'),(58,'two_factor','totpdevice'),(33,'wiki','groupwiki'),(32,'wiki','personalwiki');
|
||||
INSERT INTO `django_content_type` VALUES (50,'admin_log','adminlog'),(12,'api2','token'),(13,'api2','tokenv2'),(14,'avatar','avatar'),(15,'avatar','groupavatar'),(17,'base','clientlogintoken'),(22,'base','commandslastcheck'),(21,'base','devicetoken'),(19,'base','filecomment'),(20,'base','filediscuss'),(16,'base','groupenabledmodule'),(23,'base','innerpubmsg'),(24,'base','innerpubmsgreply'),(18,'base','userenabledmodule'),(25,'base','userlastlogin'),(26,'base','userstarredfiles'),(4,'captcha','captchastore'),(27,'contacts','contact'),(1,'contenttypes','contenttype'),(5,'database','constance'),(35,'group','groupmessage'),(36,'group','messageattachment'),(37,'group','messagereply'),(34,'group','publicgroup'),(29,'institutions','institution'),(28,'institutions','institutionadmin'),(30,'institutions','institutionquota'),(31,'invitations','invitation'),(38,'notifications','notification'),(39,'notifications','usernotification'),(40,'options','useroptions'),(63,'organizations','orgmemberquota'),(6,'post_office','attachment'),(8,'post_office','email'),(7,'post_office','emailtemplate'),(9,'post_office','log'),(42,'profile','detailedprofile'),(41,'profile','profile'),(3,'registration','registrationprofile'),(54,'revision_tag','revisiontags'),(55,'revision_tag','tags'),(60,'role_permissions','adminrole'),(2,'sessions','session'),(49,'share','anonymousshare'),(48,'share','extragroupssharepermission'),(47,'share','extrasharepermission'),(44,'share','fileshare'),(45,'share','orgfileshare'),(43,'share','privatefiledirshare'),(46,'share','uploadlinkshare'),(62,'sysadmin_extra','userloginlog'),(52,'tags','filetag'),(51,'tags','fileuuidmap'),(53,'tags','tags'),(10,'termsandconditions','termsandconditions'),(11,'termsandconditions','usertermsandconditions'),(61,'trusted_ip','trustedip'),(56,'two_factor','phonedevice'),(59,'two_factor','staticdevice'),(57,'two_factor','statictoken'),(58,'two_factor','totpdevice'),(33,'wiki','groupwiki'),(32,'wiki','personalwiki');
|
||||
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
@ -319,7 +319,7 @@ CREATE TABLE `django_migrations` (
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
|
||||
INSERT INTO `django_migrations` VALUES (1,'admin_log','0001_initial','2017-09-12 07:54:38.204173'),(2,'captcha','0001_initial','2017-09-12 07:54:38.229412'),(3,'contenttypes','0001_initial','2017-09-12 07:54:38.284805'),(4,'contenttypes','0002_remove_content_type_name','2017-09-12 07:54:38.354380'),(5,'database','0001_initial','2017-09-12 07:54:38.371998'),(6,'institutions','0001_initial','2017-09-12 07:54:38.440835'),(7,'institutions','0002_institutionquota','2017-09-12 07:54:38.491623'),(8,'invitations','0001_initial','2017-09-12 07:54:38.574096'),(9,'invitations','0002_invitation_invite_type','2017-09-12 07:54:38.600482'),(10,'invitations','0003_auto_20160510_1703','2017-09-12 07:54:38.631971'),(11,'invitations','0004_auto_20160629_1610','2017-09-12 07:54:38.671115'),(12,'invitations','0005_auto_20160629_1614','2017-09-12 07:54:38.696845'),(13,'post_office','0001_initial','2017-09-12 07:54:38.945961'),(14,'post_office','0002_add_i18n_and_backend_alias','2017-09-12 07:54:39.265697'),(15,'post_office','0003_auto_20170725_0206','2017-09-12 07:54:39.284751'),(16,'role_permissions','0001_initial','2017-09-12 07:54:39.311534'),(17,'sessions','0001_initial','2017-09-12 07:54:39.334545'),(18,'termsandconditions','0001_initial','2017-09-12 07:54:39.423324');
|
||||
INSERT INTO `django_migrations` VALUES (1,'admin_log','0001_initial','2017-09-12 10:05:26.180889'),(2,'captcha','0001_initial','2017-09-12 10:05:26.203616'),(3,'contenttypes','0001_initial','2017-09-12 10:05:26.228416'),(4,'contenttypes','0002_remove_content_type_name','2017-09-12 10:05:26.287072'),(5,'database','0001_initial','2017-09-12 10:05:26.342345'),(6,'institutions','0001_initial','2017-09-12 10:05:26.382040'),(7,'institutions','0002_institutionquota','2017-09-12 10:05:26.419270'),(8,'invitations','0001_initial','2017-09-12 10:05:26.448399'),(9,'invitations','0002_invitation_invite_type','2017-09-12 10:05:26.471655'),(10,'invitations','0003_auto_20160510_1703','2017-09-12 10:05:26.491498'),(11,'invitations','0004_auto_20160629_1610','2017-09-12 10:05:26.532763'),(12,'invitations','0005_auto_20160629_1614','2017-09-12 10:05:26.555958'),(13,'post_office','0001_initial','2017-09-12 10:05:26.760884'),(14,'post_office','0002_add_i18n_and_backend_alias','2017-09-12 10:05:27.072497'),(15,'post_office','0003_auto_20170725_0206','2017-09-12 10:05:27.089505'),(16,'role_permissions','0001_initial','2017-09-12 10:05:27.106643'),(17,'sessions','0001_initial','2017-09-12 10:05:27.132840'),(18,'termsandconditions','0001_initial','2017-09-12 10:05:27.207141');
|
||||
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
@ -927,6 +927,18 @@ CREATE TABLE `termsandconditions_usertermsandconditions` (
|
||||
/*!40000 ALTER TABLE `termsandconditions_usertermsandconditions` ENABLE KEYS */;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `trusted_ip_trustedip` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`ip` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `trusted_ip_trustedip_957b527b` (`ip`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
/*!40000 ALTER TABLE `trusted_ip_trustedip` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `trusted_ip_trustedip` ENABLE KEYS */;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `two_factor_phonedevice` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`user` varchar(255) NOT NULL,
|
||||
|
@ -1,24 +1,24 @@
|
||||
PRAGMA foreign_keys=OFF;
|
||||
BEGIN TRANSACTION;
|
||||
CREATE TABLE "django_migrations" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "applied" datetime NOT NULL);
|
||||
INSERT INTO "django_migrations" VALUES(1,'admin_log','0001_initial','2017-09-12 07:49:19.242111');
|
||||
INSERT INTO "django_migrations" VALUES(2,'captcha','0001_initial','2017-09-12 07:49:19.251952');
|
||||
INSERT INTO "django_migrations" VALUES(3,'contenttypes','0001_initial','2017-09-12 07:49:19.267546');
|
||||
INSERT INTO "django_migrations" VALUES(4,'contenttypes','0002_remove_content_type_name','2017-09-12 07:49:19.305445');
|
||||
INSERT INTO "django_migrations" VALUES(5,'database','0001_initial','2017-09-12 07:49:19.328587');
|
||||
INSERT INTO "django_migrations" VALUES(6,'institutions','0001_initial','2017-09-12 07:49:19.351902');
|
||||
INSERT INTO "django_migrations" VALUES(7,'institutions','0002_institutionquota','2017-09-12 07:49:19.366918');
|
||||
INSERT INTO "django_migrations" VALUES(8,'invitations','0001_initial','2017-09-12 07:49:19.425385');
|
||||
INSERT INTO "django_migrations" VALUES(9,'invitations','0002_invitation_invite_type','2017-09-12 07:49:19.437161');
|
||||
INSERT INTO "django_migrations" VALUES(10,'invitations','0003_auto_20160510_1703','2017-09-12 07:49:19.456714');
|
||||
INSERT INTO "django_migrations" VALUES(11,'invitations','0004_auto_20160629_1610','2017-09-12 07:49:19.487399');
|
||||
INSERT INTO "django_migrations" VALUES(12,'invitations','0005_auto_20160629_1614','2017-09-12 07:49:19.499579');
|
||||
INSERT INTO "django_migrations" VALUES(13,'post_office','0001_initial','2017-09-12 07:49:19.578901');
|
||||
INSERT INTO "django_migrations" VALUES(14,'post_office','0002_add_i18n_and_backend_alias','2017-09-12 07:49:19.859220');
|
||||
INSERT INTO "django_migrations" VALUES(15,'post_office','0003_auto_20170725_0206','2017-09-12 07:49:19.879043');
|
||||
INSERT INTO "django_migrations" VALUES(16,'role_permissions','0001_initial','2017-09-12 07:49:19.889085');
|
||||
INSERT INTO "django_migrations" VALUES(17,'sessions','0001_initial','2017-09-12 07:49:19.912092');
|
||||
INSERT INTO "django_migrations" VALUES(18,'termsandconditions','0001_initial','2017-09-12 07:49:19.953454');
|
||||
INSERT INTO "django_migrations" VALUES(1,'admin_log','0001_initial','2017-09-12 10:04:51.596908');
|
||||
INSERT INTO "django_migrations" VALUES(2,'captcha','0001_initial','2017-09-12 10:04:51.606045');
|
||||
INSERT INTO "django_migrations" VALUES(3,'contenttypes','0001_initial','2017-09-12 10:04:51.628738');
|
||||
INSERT INTO "django_migrations" VALUES(4,'contenttypes','0002_remove_content_type_name','2017-09-12 10:04:51.669697');
|
||||
INSERT INTO "django_migrations" VALUES(5,'database','0001_initial','2017-09-12 10:04:51.678208');
|
||||
INSERT INTO "django_migrations" VALUES(6,'institutions','0001_initial','2017-09-12 10:04:51.751689');
|
||||
INSERT INTO "django_migrations" VALUES(7,'institutions','0002_institutionquota','2017-09-12 10:04:51.764434');
|
||||
INSERT INTO "django_migrations" VALUES(8,'invitations','0001_initial','2017-09-12 10:04:51.774637');
|
||||
INSERT INTO "django_migrations" VALUES(9,'invitations','0002_invitation_invite_type','2017-09-12 10:04:51.786828');
|
||||
INSERT INTO "django_migrations" VALUES(10,'invitations','0003_auto_20160510_1703','2017-09-12 10:04:51.833059');
|
||||
INSERT INTO "django_migrations" VALUES(11,'invitations','0004_auto_20160629_1610','2017-09-12 10:04:51.866074');
|
||||
INSERT INTO "django_migrations" VALUES(12,'invitations','0005_auto_20160629_1614','2017-09-12 10:04:51.878832');
|
||||
INSERT INTO "django_migrations" VALUES(13,'post_office','0001_initial','2017-09-12 10:04:51.960882');
|
||||
INSERT INTO "django_migrations" VALUES(14,'post_office','0002_add_i18n_and_backend_alias','2017-09-12 10:04:52.234824');
|
||||
INSERT INTO "django_migrations" VALUES(15,'post_office','0003_auto_20170725_0206','2017-09-12 10:04:52.255748');
|
||||
INSERT INTO "django_migrations" VALUES(16,'role_permissions','0001_initial','2017-09-12 10:04:52.268064');
|
||||
INSERT INTO "django_migrations" VALUES(17,'sessions','0001_initial','2017-09-12 10:04:52.287964');
|
||||
INSERT INTO "django_migrations" VALUES(18,'termsandconditions','0001_initial','2017-09-12 10:04:52.329070');
|
||||
CREATE TABLE "registration_registrationprofile" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "emailuser_id" integer NOT NULL, "activation_key" varchar(40) NOT NULL);
|
||||
CREATE TABLE "api2_token" ("key" varchar(40) NOT NULL PRIMARY KEY, "user" varchar(255) NOT NULL UNIQUE, "created" datetime NOT NULL);
|
||||
CREATE TABLE "api2_tokenv2" ("key" varchar(40) NOT NULL PRIMARY KEY, "user" varchar(255) NOT NULL, "platform" varchar(32) NOT NULL, "device_id" varchar(40) NOT NULL, "device_name" varchar(40) NOT NULL, "platform_version" varchar(16) NOT NULL, "client_version" varchar(16) NOT NULL, "last_accessed" datetime NOT NULL, "last_login_ip" char(39) NULL, "created_at" datetime NOT NULL, "wiped_at" datetime NULL, UNIQUE ("user", "platform", "device_id"));
|
||||
@ -63,6 +63,7 @@ CREATE TABLE "two_factor_totpdevice" ("id" integer NOT NULL PRIMARY KEY AUTOINCR
|
||||
CREATE TABLE "two_factor_phonedevice" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(255) NOT NULL UNIQUE, "name" varchar(64) NOT NULL, "confirmed" bool NOT NULL, "number" varchar(40) NOT NULL, "key" varchar(40) NOT NULL, "method" varchar(4) NOT NULL);
|
||||
CREATE TABLE "two_factor_staticdevice" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(255) NOT NULL UNIQUE, "name" varchar(64) NOT NULL, "confirmed" bool NOT NULL);
|
||||
CREATE TABLE "two_factor_statictoken" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "device_id" integer NOT NULL REFERENCES "two_factor_staticdevice" ("id"), "token" varchar(16) NOT NULL);
|
||||
CREATE TABLE "trusted_ip_trustedip" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "ip" varchar(255) NOT NULL);
|
||||
CREATE TABLE "sysadmin_extra_userloginlog" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "login_date" datetime NOT NULL, "login_ip" varchar(128) NOT NULL);
|
||||
CREATE TABLE "organizations_orgmemberquota" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "org_id" integer NOT NULL, "quota" integer NOT NULL);
|
||||
CREATE TABLE "admin_log_adminlog" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" varchar(254) NOT NULL, "operation" varchar(255) NOT NULL, "detail" text NOT NULL, "datetime" datetime NOT NULL);
|
||||
@ -128,8 +129,9 @@ INSERT INTO "django_content_type" VALUES(57,'two_factor','statictoken');
|
||||
INSERT INTO "django_content_type" VALUES(58,'two_factor','totpdevice');
|
||||
INSERT INTO "django_content_type" VALUES(59,'two_factor','staticdevice');
|
||||
INSERT INTO "django_content_type" VALUES(60,'role_permissions','adminrole');
|
||||
INSERT INTO "django_content_type" VALUES(61,'sysadmin_extra','userloginlog');
|
||||
INSERT INTO "django_content_type" VALUES(62,'organizations','orgmemberquota');
|
||||
INSERT INTO "django_content_type" VALUES(61,'trusted_ip','trustedip');
|
||||
INSERT INTO "django_content_type" VALUES(62,'sysadmin_extra','userloginlog');
|
||||
INSERT INTO "django_content_type" VALUES(63,'organizations','orgmemberquota');
|
||||
CREATE TABLE "constance_config" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "key" varchar(255) NOT NULL UNIQUE, "value" text NOT NULL);
|
||||
CREATE TABLE "institutions_institution" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(200) NOT NULL, "create_time" datetime NOT NULL);
|
||||
CREATE TABLE "institutions_institutionadmin" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user" varchar(254) NOT NULL, "institution_id" integer NOT NULL REFERENCES "institutions_institution" ("id"));
|
||||
@ -146,7 +148,7 @@ CREATE TABLE "termsandconditions_termsandconditions" ("id" integer NOT NULL PRIM
|
||||
CREATE TABLE "termsandconditions_usertermsandconditions" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL, "ip_address" char(39) NULL, "date_accepted" datetime NOT NULL, "terms_id" integer NOT NULL REFERENCES "termsandconditions_termsandconditions" ("id"), UNIQUE ("username", "terms_id"));
|
||||
DELETE FROM sqlite_sequence;
|
||||
INSERT INTO "sqlite_sequence" VALUES('django_migrations',18);
|
||||
INSERT INTO "sqlite_sequence" VALUES('django_content_type',62);
|
||||
INSERT INTO "sqlite_sequence" VALUES('django_content_type',63);
|
||||
INSERT INTO "sqlite_sequence" VALUES('invitations_invitation',0);
|
||||
INSERT INTO "sqlite_sequence" VALUES('post_office_email',0);
|
||||
INSERT INTO "sqlite_sequence" VALUES('post_office_emailtemplate',0);
|
||||
@ -199,6 +201,7 @@ CREATE INDEX "revision_tag_revisiontags_76f094bc" ON "revision_tag_revisiontags"
|
||||
CREATE INDEX "revision_tag_revisiontags_14c4b06b" ON "revision_tag_revisiontags" ("username");
|
||||
CREATE INDEX "two_factor_statictoken_9379346c" ON "two_factor_statictoken" ("device_id");
|
||||
CREATE INDEX "two_factor_statictoken_94a08da1" ON "two_factor_statictoken" ("token");
|
||||
CREATE INDEX "trusted_ip_trustedip_957b527b" ON "trusted_ip_trustedip" ("ip");
|
||||
CREATE INDEX "sysadmin_extra_userloginlog_14c4b06b" ON "sysadmin_extra_userloginlog" ("username");
|
||||
CREATE INDEX "sysadmin_extra_userloginlog_28ed1ef0" ON "sysadmin_extra_userloginlog" ("login_date");
|
||||
CREATE INDEX "organizations_orgmemberquota_9cf869aa" ON "organizations_orgmemberquota" ("org_id");
|
||||
|
Loading…
Reference in New Issue
Block a user