mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-12 09:55:53 +00:00
add new migrations files
This commit is contained in:
parent
7d46c7aaa2
commit
ef9be3fed1
seahub
base/migrations
group/migrations
onlyoffice/migrations
@ -0,0 +1,40 @@
|
||||
# Generated by Django 4.2.16 on 2025-03-24 03:39
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='OrgLastActivityTime',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('org_id', models.IntegerField(db_index=True, unique=True)),
|
||||
('timestamp', models.DateTimeField(default=django.utils.timezone.now)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'org_last_active_time',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='RepoTransfer',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('repo_id', models.CharField(max_length=36)),
|
||||
('org_id', models.IntegerField(db_index=True)),
|
||||
('from_user', models.CharField(max_length=255)),
|
||||
('to', models.CharField(max_length=255)),
|
||||
('operator', models.CharField(max_length=255)),
|
||||
('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'RepoTransfer',
|
||||
},
|
||||
),
|
||||
]
|
27
seahub/group/migrations/0001_initial.py
Normal file
27
seahub/group/migrations/0001_initial.py
Normal file
@ -0,0 +1,27 @@
|
||||
# Generated by Django 4.2.16 on 2025-03-24 03:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='GroupInviteLinkModel',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('token', models.CharField(db_index=True, max_length=40)),
|
||||
('group_id', models.IntegerField(db_index=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('created_by', models.CharField(max_length=255)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'group_invite_link',
|
||||
},
|
||||
),
|
||||
]
|
26
seahub/onlyoffice/migrations/0002_repoextraconfig.py
Normal file
26
seahub/onlyoffice/migrations/0002_repoextraconfig.py
Normal file
@ -0,0 +1,26 @@
|
||||
# Generated by Django 4.2.16 on 2025-03-24 03:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('onlyoffice', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='RepoExtraConfig',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('repo_id', models.CharField(db_index=True, max_length=36)),
|
||||
('config_type', models.CharField(max_length=50)),
|
||||
('config_details', models.TextField()),
|
||||
],
|
||||
options={
|
||||
'db_table': 'repo_extra_config',
|
||||
'unique_together': {('repo_id', 'config_type')},
|
||||
},
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user